diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-08-14 19:37:36 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-08-14 19:37:36 +0100 |
commit | c3a483fc3c65f649f9985bb88792a465ea18b0a2 (patch) | |
tree | f8d15c03e75300f3208c1b36a3a7cd4f23af0c03 /src/charset.c | |
parent | 677a39fdf6a61d77ae5d14faeb498f94fd8742ff (diff) | |
download | vim-git-c3a483fc3c65f649f9985bb88792a465ea18b0a2.tar.gz |
patch 9.0.0210: 'list' mode does not work properly with virtual textv9.0.0210
Problem: 'list' mode does not work properly with virtual text.
Solution: Show the "$" at the right position. (closes #10913)
Diffstat (limited to 'src/charset.c')
-rw-r--r-- | src/charset.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/charset.c b/src/charset.c index 160495222..32539bf7a 100644 --- a/src/charset.c +++ b/src/charset.c @@ -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) |