|
Karsten Hopp |
8ecbfa |
To: vim_dev@googlegroups.com
|
|
Karsten Hopp |
8ecbfa |
Subject: Patch 7.3.110
|
|
Karsten Hopp |
8ecbfa |
Fcc: outbox
|
|
Karsten Hopp |
8ecbfa |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
8ecbfa |
Mime-Version: 1.0
|
|
Karsten Hopp |
8ecbfa |
Content-Type: text/plain; charset=UTF-8
|
|
Karsten Hopp |
8ecbfa |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
8ecbfa |
------------
|
|
Karsten Hopp |
8ecbfa |
|
|
Karsten Hopp |
8ecbfa |
Patch 7.3.110
|
|
Karsten Hopp |
8ecbfa |
Problem: The "nbsp" item in 'listchars' isn't used for ":list".
|
|
Karsten Hopp |
8ecbfa |
Solution: Make it work. (Christian Brabandt)
|
|
Karsten Hopp |
8ecbfa |
Files: src/message.c
|
|
Karsten Hopp |
8ecbfa |
|
|
Karsten Hopp |
8ecbfa |
|
|
Karsten Hopp |
8ecbfa |
*** ../vim-7.3.109/src/message.c 2011-01-17 20:08:03.000000000 +0100
|
|
Karsten Hopp |
8ecbfa |
--- src/message.c 2011-02-01 17:06:21.000000000 +0100
|
|
Karsten Hopp |
8ecbfa |
***************
|
|
Karsten Hopp |
8ecbfa |
*** 1637,1644 ****
|
|
Karsten Hopp |
8ecbfa |
else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
|
|
Karsten Hopp |
8ecbfa |
{
|
|
Karsten Hopp |
8ecbfa |
col += (*mb_ptr2cells)(s);
|
|
Karsten Hopp |
8ecbfa |
! mch_memmove(buf, s, (size_t)l);
|
|
Karsten Hopp |
8ecbfa |
! buf[l] = NUL;
|
|
Karsten Hopp |
8ecbfa |
msg_puts(buf);
|
|
Karsten Hopp |
8ecbfa |
s += l;
|
|
Karsten Hopp |
8ecbfa |
continue;
|
|
Karsten Hopp |
8ecbfa |
--- 1637,1652 ----
|
|
Karsten Hopp |
8ecbfa |
else if (has_mbyte && (l = (*mb_ptr2len)(s)) > 1)
|
|
Karsten Hopp |
8ecbfa |
{
|
|
Karsten Hopp |
8ecbfa |
col += (*mb_ptr2cells)(s);
|
|
Karsten Hopp |
8ecbfa |
! if (lcs_nbsp != NUL && list && mb_ptr2char(s) == 160)
|
|
Karsten Hopp |
8ecbfa |
! {
|
|
Karsten Hopp |
8ecbfa |
! mb_char2bytes(lcs_nbsp, buf);
|
|
Karsten Hopp |
8ecbfa |
! buf[(*mb_ptr2len)(buf)] = NUL;
|
|
Karsten Hopp |
8ecbfa |
! }
|
|
Karsten Hopp |
8ecbfa |
! else
|
|
Karsten Hopp |
8ecbfa |
! {
|
|
Karsten Hopp |
8ecbfa |
! mch_memmove(buf, s, (size_t)l);
|
|
Karsten Hopp |
8ecbfa |
! buf[l] = NUL;
|
|
Karsten Hopp |
8ecbfa |
! }
|
|
Karsten Hopp |
8ecbfa |
msg_puts(buf);
|
|
Karsten Hopp |
8ecbfa |
s += l;
|
|
Karsten Hopp |
8ecbfa |
continue;
|
|
Karsten Hopp |
8ecbfa |
***************
|
|
Karsten Hopp |
8ecbfa |
*** 1664,1669 ****
|
|
Karsten Hopp |
8ecbfa |
--- 1672,1682 ----
|
|
Karsten Hopp |
8ecbfa |
attr = hl_attr(HLF_8);
|
|
Karsten Hopp |
8ecbfa |
}
|
|
Karsten Hopp |
8ecbfa |
}
|
|
Karsten Hopp |
8ecbfa |
+ else if (c == 160 && list && lcs_nbsp != NUL)
|
|
Karsten Hopp |
8ecbfa |
+ {
|
|
Karsten Hopp |
8ecbfa |
+ c = lcs_nbsp;
|
|
Karsten Hopp |
8ecbfa |
+ attr = hl_attr(HLF_8);
|
|
Karsten Hopp |
8ecbfa |
+ }
|
|
Karsten Hopp |
8ecbfa |
else if (c == NUL && list && lcs_eol != NUL)
|
|
Karsten Hopp |
8ecbfa |
{
|
|
Karsten Hopp |
8ecbfa |
p_extra = (char_u *)"";
|
|
Karsten Hopp |
8ecbfa |
*** ../vim-7.3.109/src/version.c 2011-02-01 13:59:44.000000000 +0100
|
|
Karsten Hopp |
8ecbfa |
--- src/version.c 2011-02-01 17:08:31.000000000 +0100
|
|
Karsten Hopp |
8ecbfa |
***************
|
|
Karsten Hopp |
8ecbfa |
*** 716,717 ****
|
|
Karsten Hopp |
8ecbfa |
--- 716,719 ----
|
|
Karsten Hopp |
8ecbfa |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
8ecbfa |
+ /**/
|
|
Karsten Hopp |
8ecbfa |
+ 110,
|
|
Karsten Hopp |
8ecbfa |
/**/
|
|
Karsten Hopp |
8ecbfa |
|
|
Karsten Hopp |
8ecbfa |
--
|
|
Karsten Hopp |
8ecbfa |
hundred-and-one symptoms of being an internet addict:
|
|
Karsten Hopp |
8ecbfa |
176. You lie, even to user-friends, about how long you were online yesterday.
|
|
Karsten Hopp |
8ecbfa |
|
|
Karsten Hopp |
8ecbfa |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
8ecbfa |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
8ecbfa |
\\\ an exciting new programming language -- http://www.Zimbu.org ///
|
|
Karsten Hopp |
8ecbfa |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|