4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Multi-byte characters in a message are displayed with attributes
12 from what comes before it.
13 Solution: Don't use the attributes for a multi-byte character. Do use
14 attributes for special characters. (Yukihiro Nakadaira)
18 *** ../vim-7.0.184/src/message.c Sat Oct 14 14:33:21 2006
19 --- src/message.c Sat Jan 13 17:27:31 2007
23 char_u *p_extra = NULL; /* init to make SASC shut up */
31 char_u *p_extra = NULL; /* init to make SASC shut up */
56 col += (*mb_ptr2cells)(s);
57 mch_memmove(buf, s, (size_t)l);
59 ! msg_puts_attr(buf, attr);
64 col += (*mb_ptr2cells)(s);
65 mch_memmove(buf, s, (size_t)l);
74 p_extra = transchar_byte(c);
77 + /* Use special coloring to be able to distinguish <hex> from
78 + * the same in plain text. */
79 + attr = hl_attr(HLF_8);
81 else if (c == ' ' && trail != NULL && s > trail)
83 *** ../vim-7.0.184/src/version.c Tue Jan 16 15:17:43 2007
84 --- src/version.c Tue Jan 16 15:43:37 2007
88 { /* Add new patch number below this line */
94 This planet has -- or rather had -- a problem, which was this: most
95 of the people living on it were unhappy for pretty much of the time.
96 Many solutions were suggested for this problem, but most of these
97 were largely concerned with the movements of small green pieces of
98 paper, which is odd because on the whole it wasn't the small green
99 pieces of paper that were unhappy.
100 -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
102 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
103 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
104 \\\ download, build and distribute -- http://www.A-A-P.org ///
105 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///