summaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-02-08 18:35:31 +0100
committerBram Moolenaar <Bram@vim.org>2020-02-08 18:35:31 +0100
commitdbe5d361feb65137099644329cf0ecfd4a945a14 (patch)
treed7b2410bb7f7d3044e30056fa290ef3b26330350 /src/buffer.c
parentd5b991493816a2edba7cacdd06820cf3c0abc4dc (diff)
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 7ff8097737..25620afb5d 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)