summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2019-06-06 15:19:31 +0200
committerBram Moolenaar <Bram@vim.org>2019-06-06 15:19:31 +0200
commit12e71eb8a89bdfe1def5854fd7478e8899801b44 (patch)
tree930834a55c2a618caaaeb4563a51d67fba5cd73c
parent8e228e21cc712d5cec2705afe1465ca9685bbbf6 (diff)
downloadvim-git-12e71eb8a89bdfe1def5854fd7478e8899801b44.tar.gz
patch 8.1.1481: length for two-digit rgb termresponse is off by onev8.1.1481
Problem: Length for two-digit rgb termresponse is off by one. Solution: Adjust the length. (closes #4494)
-rw-r--r--src/term.c2
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c
index 8d6a98e5c..afa622e45 100644
--- a/src/term.c
+++ b/src/term.c
@@ -4990,7 +4990,7 @@ check_termcode(
int is_4digit = i - j >= 21 && tp[j + 11] == '/'
&& tp[j + 16] == '/';
- if (i - j >= 14 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
+ if (i - j >= 15 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
&& (is_4digit
|| (tp[j + 9] == '/' && tp[i + 12 == '/'])))
{
diff --git a/src/version.c b/src/version.c
index 72f4009ff..2fd64c3f4 100644
--- a/src/version.c
+++ b/src/version.c
@@ -768,6 +768,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 1481,
+/**/
1480,
/**/
1479,