{
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)
source view_util.vim
source check.vim
+source screendump.vim
func s:get_statusline()
return ScreenLines(&lines - 1, &columns)[0]
bwipe! x1
bwipe! x2
endfunc
+
+func Test_statusline_removed_group()
+ CheckScreendump
+
+ let lines =<< trim END
+ scriptencoding utf-8
+ set laststatus=2
+ let &statusline = '%#StatColorHi2#%(✓%#StatColorHi2#%) Q≡'
+ END
+ call writefile(lines, 'XTest_statusline')
+
+ let buf = RunVimInTerminal('-S XTest_statusline', {'rows': 10, 'cols': 50})
+ call term_wait(buf, 100)
+ call VerifyScreenDump(buf, 'Test_statusline_1', {})
+
+ " clean up
+ call StopVimInTerminal(buf)
+ call delete('XTest_statusline')
+endfunc