patch 9.0.1343: check for OSC escape sequence doesn't work v9.0.1343
authorJohan Mattsson <39247600+mjunix@users.noreply.github.com>
Thu, 23 Feb 2023 12:46:04 +0000 (12:46 +0000)
committerBram Moolenaar <Bram@vim.org>
Thu, 23 Feb 2023 12:46:04 +0000 (12:46 +0000)
Problem:    Check for OSC escape sequence doesn't work.
Solution:   Move square bracket to the right place. (Johan Mattsson,
            closes #12048)

src/term.c
src/version.c

index 18500a3d3b11b618f6a64908acebd01f48e6c8c3..ab1ad570ebd69868b79307b211a24347d34b1c06 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[i + 12] == '/')))
                {
                    char_u *tp_r = tp + j + 7;
                    char_u *tp_g = tp + j + (is_4digit ? 12 : 10);
index 81086a422c05e82893e9ea1f4033e2a25dde8d55..caa030553385deb33c4138ba2c4793b00ea32ba0 100644 (file)
@@ -695,6 +695,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1343,
 /**/
     1342,
 /**/