Mercurial > vim
comparison src/term.c @ 32023:e8325653b814 v9.0.1343
patch 9.0.1343: check for OSC escape sequence doesn't work
Commit: https://github.com/vim/vim/commit/3451789f58b24d48fc97301a01a8d27bd154caf5
Author: Johan Mattsson <39247600+mjunix@users.noreply.github.com>
Date: Thu Feb 23 12:46:04 2023 +0000
patch 9.0.1343: check for OSC escape sequence doesn't work
Problem: Check for OSC escape sequence doesn't work.
Solution: Move square bracket to the right place. (Johan Mattsson,
closes #12048)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 23 Feb 2023 14:00:04 +0100 |
parents | 4545f58c8490 |
children | 9085421fe397 |
comparison
equal
deleted
inserted
replaced
32022:1a5c2c5f8524 | 32023:e8325653b814 |
---|---|
5714 int is_4digit = i - j >= 21 && tp[j + 11] == '/' | 5714 int is_4digit = i - j >= 21 && tp[j + 11] == '/' |
5715 && tp[j + 16] == '/'; | 5715 && tp[j + 16] == '/'; |
5716 | 5716 |
5717 if (i - j >= 15 && STRNCMP(tp + j + 3, "rgb:", 4) == 0 | 5717 if (i - j >= 15 && STRNCMP(tp + j + 3, "rgb:", 4) == 0 |
5718 && (is_4digit | 5718 && (is_4digit |
5719 || (tp[j + 9] == '/' && tp[i + 12 == '/']))) | 5719 || (tp[j + 9] == '/' && tp[i + 12] == '/'))) |
5720 { | 5720 { |
5721 char_u *tp_r = tp + j + 7; | 5721 char_u *tp_r = tp + j + 7; |
5722 char_u *tp_g = tp + j + (is_4digit ? 12 : 10); | 5722 char_u *tp_g = tp + j + (is_4digit ? 12 : 10); |
5723 char_u *tp_b = tp + j + (is_4digit ? 17 : 13); | 5723 char_u *tp_b = tp + j + (is_4digit ? 17 : 13); |
5724 #if defined(FEAT_TERMRESPONSE) && defined(FEAT_TERMINAL) | 5724 #if defined(FEAT_TERMRESPONSE) && defined(FEAT_TERMINAL) |