]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.1.0090: Assigning wrong colors when parsing terminal OSC response v9.1.0090
authorMaxim Kim <habamax@gmail.com>
Fri, 9 Feb 2024 22:11:54 +0000 (23:11 +0100)
committerChristian Brabandt <cb@256bit.org>
Fri, 9 Feb 2024 22:11:54 +0000 (23:11 +0100)
Problem:  Assigning wrong colors when parsing terminal OSC response
Solution: Correctly assign Green and Blue from the terminal response
          (Maxim Kim)

closes: #13981

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/term.c
src/version.c

index 44d7443dd1b4b5357e8c3090d527c23ec13511a2..8aa86ce03438230462348044e7c45327ea038881 100644 (file)
@@ -5768,8 +5768,8 @@ handle_osc(char_u *tp, char_u *argp, int len, char_u *key_name, int *slen)
                    int rval, gval, bval;
 
                    rval = hexhex2nr(tp_r);
-                   gval = hexhex2nr(tp_b);
-                   bval = hexhex2nr(tp_g);
+                   gval = hexhex2nr(tp_g);
+                   bval = hexhex2nr(tp_b);
 #endif
                    if (is_bg)
                    {
index a4132dbebc842f452ed5a3df11c2d06bfdaa3ddc..6beeabbd0723216788c6b4b2604a3d61846a9a71 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    90,
 /**/
     89,
 /**/