mirror of
https://github.com/neovim/neovim.git
synced 2026-11-01 17:13:14 -06:00
fix(column): apply custom highlight to last 'statuscolumn' segment (#32182)
This commit is contained in:
1 parent
2cd72258f6
commit
8bc28978b6
2 files changed
+10
-2
No files matched your search
+2
-2
@@ -654,8 +654,8 @@ static void draw_statuscol(win_T *wp, winlinevars_T *wlv, linenr_T lnum, int vir
|
||||
p = sp->start;
|
||||
}
|
||||
size_t translen = transstr_buf(p, buf + len - p, transbuf, MAXPATHL, true);
|
||||
draw_col_buf(wp, wlv, transbuf, translen, num_attr, fold_vcol, false);
|
||||
draw_col_fill(wlv, schar_from_ascii(' '), stcp->width - width, num_attr);
|
||||
draw_col_buf(wp, wlv, transbuf, translen, cur_attr, fold_vcol, false);
|
||||
draw_col_fill(wlv, schar_from_ascii(' '), stcp->width - width, cur_attr);
|
||||
}
|
||||
|
||||
static void handle_breakindent(win_T *wp, winlinevars_T *wlv)
|
||||
|
||||
@@ -227,6 +227,14 @@ describe('statuscolumn', function()
|
||||
{1: }{8:8│}aaaaa |
|
||||
|
|
||||
]])
|
||||
-- Last segment and fillchar are highlighted properly
|
||||
command("set stc=%#Error#%{v:relnum?'Foo':'FooBar'}")
|
||||
screen:expect([[
|
||||
{9:Foo }aaaaa |*4
|
||||
{9:FooBar}^aaaaa |
|
||||
{9:Foo }aaaaa |*8
|
||||
|
|
||||
]])
|
||||
end)
|
||||
|
||||
it('works with wrapped lines, signs and folds', function()
|
||||
|
||||
Reference in new issue
Block a user