Skip to content

Commit

Permalink
updated for version 7.3.110
Browse files Browse the repository at this point in the history
Problem:    The "nbsp" item in 'listchars' isn't used for ":list".
Solution:   Make it work. (Christian Brabandt)
  • Loading branch information
brammool committed Feb 1, 2011
1 parent 467eeff commit 7822b71
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 15 additions & 2 deletions src/message.c
Expand Up @@ -1637,8 +1637,16 @@ msg_prt_line(s, list)
else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
{
col += (*mb_ptr2cells)(s);
mch_memmove(buf, s, (size_t)l);
buf[l] = NUL;
if (lcs_nbsp != NUL && list && mb_ptr2char(s) == 160)
{
mb_char2bytes(lcs_nbsp, buf);
buf[(*mb_ptr2len)(buf)] = NUL;
}
else
{
mch_memmove(buf, s, (size_t)l);
buf[l] = NUL;
}
msg_puts(buf);
s += l;
continue;
Expand All @@ -1664,6 +1672,11 @@ msg_prt_line(s, list)
attr = hl_attr(HLF_8);
}
}
else if (c == 160 && list && lcs_nbsp != NUL)
{
c = lcs_nbsp;
attr = hl_attr(HLF_8);
}
else if (c == NUL && list && lcs_eol != NUL)
{
p_extra = (char_u *)"";
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -714,6 +714,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
110,
/**/
109,
/**/
Expand Down

0 comments on commit 7822b71

Please sign in to comment.