forked from aniani/vim
patch 9.0.1813: linebreak incorrect drawn with breakindent
Problem: 'linebreak' is incorrectly drawn after 'breakindent'. Solution: Don't include 'breakindent' size when already after it. closes: #12937 closes: #12940 Signed-off-by: Christian Brabandt <cb@256bit.org> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
This commit is contained in:
committed by
Christian Brabandt
parent
93ebb5e75e
commit
1d3e0e8f31
@@ -2887,14 +2887,6 @@ win_line(
|
||||
wlv.n_extra = win_lbr_chartabsize(&cts, NULL) - 1;
|
||||
clear_chartabsize_arg(&cts);
|
||||
|
||||
// We have just drawn the showbreak value, no need to add
|
||||
// space for it again.
|
||||
if (wlv.vcol == wlv.vcol_sbr)
|
||||
{
|
||||
wlv.n_extra -= MB_CHARLEN(get_showbreak_value(wp));
|
||||
if (wlv.n_extra < 0)
|
||||
wlv.n_extra = 0;
|
||||
}
|
||||
if (on_last_col && c != TAB)
|
||||
// Do not continue search/match highlighting over the
|
||||
// line break, but for TABs the highlighting should
|
||||
|
||||
Reference in New Issue
Block a user