]> granicus.if.org Git - vim/commitdiff
patch 8.1.1481: length for two-digit rgb termresponse is off by one v8.1.1481
authorBram Moolenaar <Bram@vim.org>
Thu, 6 Jun 2019 13:19:31 +0000 (15:19 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 6 Jun 2019 13:19:31 +0000 (15:19 +0200)
Problem:    Length for two-digit rgb termresponse is off by one.
Solution:   Adjust the length. (closes #4494)

src/term.c
src/version.c

index 8d6a98e5c03be0a118a9381ebfc17fc3e6f0743f..afa622e45f049c1d1224e8438cb83617ba5684f0 100644 (file)
@@ -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 == '/'])))
                        {
index 72f4009ffdf84c4e5ff259a3fa9de8a25f0c0c8e..2fd64c3f414df87dac4ed7f7c4b5d05ddb037cf7 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1481,
 /**/
     1480,
 /**/