From c3a483fc3c65f649f9985bb88792a465ea18b0a2 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sun, 14 Aug 2022 19:37:36 +0100 Subject: 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) --- src/charset.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/charset.c') diff --git a/src/charset.c b/src/charset.c index 160495222a..32539bf7ac 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) -- cgit v1.2.3