]> granicus.if.org Git - vim/commitdiff
patch 9.0.1344: check for OSC escape sequence doesn't work v9.0.1344
authorBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2023 13:54:01 +0000 (13:54 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2023 13:54:01 +0000 (13:54 +0000)
Problem:    Check for OSC escape sequence doesn't work.
Solution:   Fix typo in index.

src/term.c
src/version.c

index ab1ad570ebd69868b79307b211a24347d34b1c06..2f0a0cb4d71ff8994225d93c577cd1931db6310f 100644 (file)
@@ -5716,7 +5716,7 @@ handle_osc(char_u *tp, char_u *argp, int len, char_u *key_name, int *slen)
 
                if (i - j >= 15 && STRNCMP(tp + j + 3, "rgb:", 4) == 0
                            && (is_4digit
-                                  || (tp[j + 9] == '/' && tp[i + 12] == '/')))
+                                  || (tp[j + 9] == '/' && tp[j + 12] == '/')))
                {
                    char_u *tp_r = tp + j + 7;
                    char_u *tp_g = tp + j + (is_4digit ? 12 : 10);
index caa030553385deb33c4138ba2c4793b00ea32ba0..9176a8bfc37337a25c0a63b9616ccae5a0151e09 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1344,
 /**/
     1343,
 /**/