diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-08-02 20:19:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-02 20:19:48 +0200 |
commit | 4ed5204bc9d5811cd45209476ac1b9e2c2b74146 (patch) | |
tree | b3d811af95576072856a07f0dffcb86c76de6604 /src/nvim/buffer.c | |
parent | 480515e4426865c37a42a452432b3463f0ab40a7 (diff) | |
parent | ea515f8ca1fa63cfad516a956cd78ef371f91955 (diff) | |
download | rneovim-4ed5204bc9d5811cd45209476ac1b9e2c2b74146.tar.gz rneovim-4ed5204bc9d5811cd45209476ac1b9e2c2b74146.tar.bz2 rneovim-4ed5204bc9d5811cd45209476ac1b9e2c2b74146.zip |
Merge pull request #12665 from janlazo/vim-8.2.1254
vim-patch:8.0.1774,8.1.{192,194,255,264,1202,2172,2340},8.2.{62,71,72,1004,1254,1259,1265,1267,1292,1295}
Diffstat (limited to 'src/nvim/buffer.c')
-rw-r--r-- | src/nvim/buffer.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c index 86067aceac..b3bbdce9d9 100644 --- a/src/nvim/buffer.c +++ b/src/nvim/buffer.c @@ -3646,13 +3646,19 @@ int build_stl_str_hl( } } if (n == curitem && group_start_userhl == group_end_userhl) { + // empty group out_p = t; group_len = 0; - // do not use the highlighting from the removed group for (n = groupitems[groupdepth] + 1; n < curitem; n++) { + // do not use the highlighting from the removed group if (items[n].type == Highlight) { items[n].type = Empty; } + // adjust the start position of TabPage to the next + // item position + if (items[n].type == TabPage) { + items[n].start = out_p; + } } } } |