1 To: vim_dev@googlegroups.com
4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: The "nbsp" item in 'listchars' isn't used for ":list".
12 Solution: Make it work. (Christian Brabandt)
16 *** ../vim-7.3.109/src/message.c 2011-01-17 20:08:03.000000000 +0100
17 --- src/message.c 2011-02-01 17:06:21.000000000 +0100
20 else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
22 col += (*mb_ptr2cells)(s);
23 ! mch_memmove(buf, s, (size_t)l);
29 else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
31 col += (*mb_ptr2cells)(s);
32 ! if (lcs_nbsp != NUL && list && mb_ptr2char(s) == 160)
34 ! mb_char2bytes(lcs_nbsp, buf);
35 ! buf[(*mb_ptr2len)(buf)] = NUL;
39 ! mch_memmove(buf, s, (size_t)l);
48 attr = hl_attr(HLF_8);
51 + else if (c == 160 && list && lcs_nbsp != NUL)
54 + attr = hl_attr(HLF_8);
56 else if (c == NUL && list && lcs_eol != NUL)
58 p_extra = (char_u *)"";
59 *** ../vim-7.3.109/src/version.c 2011-02-01 13:59:44.000000000 +0100
60 --- src/version.c 2011-02-01 17:08:31.000000000 +0100
64 { /* Add new patch number below this line */
70 hundred-and-one symptoms of being an internet addict:
71 176. You lie, even to user-friends, about how long you were online yesterday.
73 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
74 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
75 \\\ an exciting new programming language -- http://www.Zimbu.org ///
76 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///