aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/syntax.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-23 13:01:31 +0800
committerGitHub <noreply@github.com>2022-06-23 13:01:31 +0800
commite694e564220acc58b1cb4132ad3c8a0fa02067d9 (patch)
treec9a6506ae6357d83057a0c3c3b26224833ac9ebd /src/nvim/syntax.c
parent1b75094e3e1c2ef002f2a089d17553f84e06e06f (diff)
downloadrneovim-e694e564220acc58b1cb4132ad3c8a0fa02067d9.tar.gz
rneovim-e694e564220acc58b1cb4132ad3c8a0fa02067d9.tar.bz2
rneovim-e694e564220acc58b1cb4132ad3c8a0fa02067d9.zip
vim-patch:8.2.2068: transparent syntax item uses start/end of containing region (#19055)
Problem: Transparent syntax item uses start/end of containing region. Solution: Do not change the startpos and endpos of a transparent region to that of its containing region. (Adrian Ghizaru, closes vim/vim#7349, closes vim/vim#7391) https://github.com/vim/vim/commit/b46f57e87b3706a8c4b97d8e03f7853a7938b061
Diffstat (limited to 'src/nvim/syntax.c')
-rw-r--r--src/nvim/syntax.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/syntax.c b/src/nvim/syntax.c
index 47305b6709..0d43458b5b 100644
--- a/src/nvim/syntax.c
+++ b/src/nvim/syntax.c
@@ -2381,8 +2381,6 @@ static void update_si_attr(int idx)
} else {
sip->si_attr = CUR_STATE(idx - 1).si_attr;
sip->si_trans_id = CUR_STATE(idx - 1).si_trans_id;
- sip->si_h_startpos = CUR_STATE(idx - 1).si_h_startpos;
- sip->si_h_endpos = CUR_STATE(idx - 1).si_h_endpos;
if (sip->si_cont_list == NULL) {
sip->si_flags |= HL_TRANS_CONT;
sip->si_cont_list = CUR_STATE(idx - 1).si_cont_list;