diff options
author | Maxim Kim <habamax@gmail.com> | 2024-02-09 23:11:54 +0100 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-02-09 23:11:54 +0100 |
commit | 45932c5c4a9ec01f7c2aa09b1574430853dafb4b (patch) | |
tree | a3bae894143f4f3e82d2196de8ccf09df7a6e62e /src | |
parent | 415a5a951ba6a827ecafc2e13bf341ed4e124ad6 (diff) |
patch 9.1.0090: Assigning wrong colors when parsing terminal OSC responsev9.1.0090
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/term.c | 4 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/term.c b/src/term.c index 44d7443dd1..8aa86ce034 100644 --- a/src/term.c +++ b/src/term.c @@ -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) { diff --git a/src/version.c b/src/version.c index a4132dbebc..6beeabbd07 100644 --- 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, |