vim-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 vim/vim#4360)
a5c6a0b6c7
This commit is contained in:
Jan Edmund Lazo
2019-05-08 21:42:00 -04:00
parent 924f1173cb
commit 98398ff93f
2 changed files with 23 additions and 2 deletions

View File

@@ -3995,8 +3995,10 @@ win_line (
break;
}
// line continues beyond line end
if (wp->w_p_lcs_chars.ext
// Show "extends" character from 'listchars' if beyond the line end and
// 'list' is set.
if (wp->w_p_lcs_chars.ext != NUL
&& wp->w_p_list
&& !wp->w_p_wrap
&& filler_todo <= 0
&& (wp->w_p_rl ? col == 0 : col == grid->Columns - 1)