vim-patch:7.4.710

Problem:    It is not possible to make spaces visibible in list mode.
Solution:   Add the "space" item to 'listchars'. (David Bürgin, issue 350)

https://github.com/vim/vim/releases/tag/v7-4-710

Closes #2485.
This commit is contained in:
David Bürgin
2015-04-23 06:58:20 +02:00
committed by Justin M. Keyes
parent ed464908e4
commit 7f07646294
5 changed files with 116 additions and 15 deletions

View File

@@ -3165,11 +3165,11 @@ win_line (
}
++ptr;
/* 'list' : change char 160 to lcs_nbsp. */
if (wp->w_p_list && (c == 160
|| (mb_utf8 && mb_c == 160)
) && lcs_nbsp) {
c = lcs_nbsp;
// 'list': change char 160 to lcs_nbsp and space to lcs_space.
if (wp->w_p_list
&& (((c == 160 || (mb_utf8 && mb_c == 160)) && lcs_nbsp)
|| (c == ' ' && lcs_space && ptr <= line + trailcol))) {
c = (c == ' ') ? lcs_space : lcs_nbsp;
if (area_attr == 0 && search_attr == 0) {
n_attr = 1;
extra_attr = hl_attr(HLF_8);