mirror of
https://github.com/vim/vim.git
synced 2025-07-25 10:54:51 -04:00
updated for version 7.3.110
Problem: The "nbsp" item in 'listchars' isn't used for ":list". Solution: Make it work. (Christian Brabandt)
This commit is contained in:
parent
c98d5ee923
commit
acf1728ef5
@ -1637,8 +1637,16 @@ msg_prt_line(s, list)
|
|||||||
else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
|
else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
|
||||||
{
|
{
|
||||||
col += (*mb_ptr2cells)(s);
|
col += (*mb_ptr2cells)(s);
|
||||||
mch_memmove(buf, s, (size_t)l);
|
if (lcs_nbsp != NUL && list && mb_ptr2char(s) == 160)
|
||||||
buf[l] = NUL;
|
{
|
||||||
|
mb_char2bytes(lcs_nbsp, buf);
|
||||||
|
buf[(*mb_ptr2len)(buf)] = NUL;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
mch_memmove(buf, s, (size_t)l);
|
||||||
|
buf[l] = NUL;
|
||||||
|
}
|
||||||
msg_puts(buf);
|
msg_puts(buf);
|
||||||
s += l;
|
s += l;
|
||||||
continue;
|
continue;
|
||||||
@ -1664,6 +1672,11 @@ msg_prt_line(s, list)
|
|||||||
attr = hl_attr(HLF_8);
|
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)
|
else if (c == NUL && list && lcs_eol != NUL)
|
||||||
{
|
{
|
||||||
p_extra = (char_u *)"";
|
p_extra = (char_u *)"";
|
||||||
|
@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
110,
|
||||||
/**/
|
/**/
|
||||||
109,
|
109,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user