changeset 34312:737023edd0a5 v9.1.0090

patch 9.1.0090: Assigning wrong colors when parsing terminal OSC response Commit: https://github.com/vim/vim/commit/45932c5c4a9ec01f7c2aa09b1574430853dafb4b Author: Maxim Kim <habamax@gmail.com> Date: Fri Feb 9 23:11:54 2024 +0100 patch 9.1.0090: Assigning wrong colors when parsing terminal OSC response 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>
author Christian Brabandt <cb@256bit.org>
date Fri, 09 Feb 2024 23:15:04 +0100
parents 5b46a975e48a
children faf0d254063e
files src/term.c src/version.c
diffstat 2 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c
+++ b/src/term.c
@@ -5768,8 +5768,8 @@ handle_osc(char_u *tp, char_u *argp, int
 		    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)
 		    {
--- a/src/version.c
+++ b/src/version.c
@@ -705,6 +705,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    90,
+/**/
     89,
 /**/
     88,