diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-02-08 18:35:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-02-08 18:35:31 +0100 |
commit | dbe5d361feb65137099644329cf0ecfd4a945a14 (patch) | |
tree | d7b2410bb7f7d3044e30056fa290ef3b26330350 /src/buffer.c | |
parent | d5b991493816a2edba7cacdd06820cf3c0abc4dc (diff) | |
download | vim-git-dbe5d361feb65137099644329cf0ecfd4a945a14.tar.gz |
patch 8.2.0235: draw error when an empty group is removed from 'statusline'v8.2.0235
Problem: Draw error when an empty group is removed from 'statusline'.
Solution: Do not use highlighting from a removed group.
Diffstat (limited to 'src/buffer.c')
-rw-r--r-- | src/buffer.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c index 7ff809773..25620afb5 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -4216,6 +4216,10 @@ build_stl_str_hl( { p = t; l = 0; + // do not use the highlighting from the removed group + for (n = groupitem[groupdepth] + 1; n < curitem; n++) + if (item[n].type == Highlight) + item[n].type = Empty; } } if (l > item[groupitem[groupdepth]].maxwid) |