vim-patch:9.1.1130: 'listchars' "precedes" is not drawn on Tabs. (#32563)

Problem:  'listchars' "precedes" is not drawn on Tabs.
Solution: Only draw 'listchars' "precedes" when not skipping over cells.
          (zeertzjq)

fixes: vim/vim#5927
closes: vim/vim#16691

13f100e932
This commit is contained in:
zeertzjq
2025-02-22 06:05:32 +08:00
committed by GitHub
parent cbad2c6628
commit 4ff813e5c6
2 changed files with 24 additions and 2 deletions

View File

@@ -2581,6 +2581,7 @@ int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, int col_rows, s
&& wp->w_p_list
&& (wp->w_p_wrap ? (wp->w_skipcol > 0 && wlv.row == 0) : wp->w_leftcol > 0)
&& wlv.filler_todo <= 0
&& wlv.skip_cells <= 0
&& mb_schar != NUL) {
lcs_prec_todo = NUL;
// TODO(zeertzjq): handle the n_extra > 0 case