forked from aniani/vim
patch 9.0.1373: wrong text displayed when using both 'linebreak' and 'list'
Problem: Wrong text displayed when using both 'linebreak' and 'list'.
Solution: Only set "c_extra" to NUL when "p_extra" is not empty. (Hirohito
Higashi, closes #12065)
This commit is contained in:
@@ -3095,7 +3095,8 @@ win_line(
|
||||
? wp->w_lcs_chars.tab3
|
||||
: wp->w_lcs_chars.tab1;
|
||||
#ifdef FEAT_LINEBREAK
|
||||
if (wp->w_p_lbr && wlv.p_extra != NULL)
|
||||
if (wp->w_p_lbr && wlv.p_extra != NULL
|
||||
&& *wlv.p_extra != NUL)
|
||||
wlv.c_extra = NUL; // using p_extra from above
|
||||
else
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user