forked from aniani/vim
patch 9.0.1851: breakindent missing by virt text
Problem: Virtual text at a column causes 'breakindent' and 'showbreak'
to be missing (after patch 9.0.1124).
Solution: Add check for "tp_col" in another place where TP_FLAG_WRAP is
checked.
closes: #12769
closes: #13008
closes: #13010
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
32f3461465
commit
3c3cf1d689
@@ -2112,7 +2112,8 @@ win_line(
|
||||
& TP_FLAG_ALIGN_RIGHT);
|
||||
int below = (tp->tp_flags
|
||||
& TP_FLAG_ALIGN_BELOW);
|
||||
int wrap = (tp->tp_flags & TP_FLAG_WRAP);
|
||||
int wrap = tp->tp_col < MAXCOL
|
||||
|| (tp->tp_flags & TP_FLAG_WRAP);
|
||||
int padding = tp->tp_col == MAXCOL
|
||||
&& tp->tp_len > 1
|
||||
? tp->tp_len - 1 : 0;
|
||||
|
||||
Reference in New Issue
Block a user