0
0
mirror of https://github.com/vim/vim.git synced 2025-10-02 05:04:20 -04:00

patch 8.1.1299: "extends" from 'listchars' is used when 'list' is off

Problem:    "extends" from 'listchars' is used when 'list' is off. (Hiroyuki
            Yoshinaga)
Solution:   Only use the "extends" character when 'list' is on. (Hirohito
            Higashi, closes #4360)
This commit is contained in:
Bram Moolenaar
2019-05-08 20:20:46 +02:00
parent 5416b75031
commit a5c6a0b6c7
3 changed files with 25 additions and 2 deletions

View File

@@ -5594,8 +5594,10 @@ win_line(
break;
}
/* line continues beyond line end */
if (lcs_ext
// Show "extends" character from 'listchars' if beyond the line end and
// 'list' is set.
if (lcs_ext != NUL
&& wp->w_p_list
&& !wp->w_p_wrap
#ifdef FEAT_DIFF
&& filler_todo <= 0