mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 03:48:18 +00:00
fix(column): apply custom highlight to last 'statuscolumn' segment (#32182)
This commit is contained in:
@@ -654,8 +654,8 @@ static void draw_statuscol(win_T *wp, winlinevars_T *wlv, linenr_T lnum, int vir
|
|||||||
p = sp->start;
|
p = sp->start;
|
||||||
}
|
}
|
||||||
size_t translen = transstr_buf(p, buf + len - p, transbuf, MAXPATHL, true);
|
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_buf(wp, wlv, transbuf, translen, cur_attr, fold_vcol, false);
|
||||||
draw_col_fill(wlv, schar_from_ascii(' '), stcp->width - width, num_attr);
|
draw_col_fill(wlv, schar_from_ascii(' '), stcp->width - width, cur_attr);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void handle_breakindent(win_T *wp, winlinevars_T *wlv)
|
static void handle_breakindent(win_T *wp, winlinevars_T *wlv)
|
||||||
|
@@ -227,6 +227,14 @@ describe('statuscolumn', function()
|
|||||||
{1: }{8:8│}aaaaa |
|
{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)
|
end)
|
||||||
|
|
||||||
it('works with wrapped lines, signs and folds', function()
|
it('works with wrapped lines, signs and folds', function()
|
||||||
|
Reference in New Issue
Block a user