1
0
forked from aniani/vim

patch 9.0.0210: 'list' mode does not work properly with virtual text

Problem:    'list' mode does not work properly with virtual text.
Solution:   Show the "$" at the right position. (closes #10913)
This commit is contained in:
Bram Moolenaar
2022-08-14 19:37:36 +01:00
parent 677a39fdf6
commit c3a483fc3c
7 changed files with 83 additions and 11 deletions

View File

@@ -1186,6 +1186,11 @@ win_lbr_chartabsize(
int len = (int)STRLEN(p);
int n_used = len;
// The "$" for 'list' mode will go between the EOL and
// the text prop, account for that.
if (wp->w_p_list && wp->w_lcs_chars.eol != NUL)
++vcol;
// Keep in sync with where textprop_size_after_trunc()
// is called in win_line().
if (!wrap)