4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: Unprintable characters in completion text mess up the popup menu.
13 Solution: Use strtrans() to make the text printable.
14 Files: src/charset.c, src/popupmnu.c
17 *** ../vim-7.0.222/src/charset.c Tue Apr 18 00:04:40 2006
18 --- src/charset.c Sat Mar 24 21:10:37 2007
24 ! #if defined(FEAT_EVAL) || defined(FEAT_TITLE) || defined(PROTO)
26 * Translate a string into allocated memory, replacing special chars with
27 * printable chars. Returns NULL when out of memory.
32 ! #if defined(FEAT_EVAL) || defined(FEAT_TITLE) || defined(FEAT_INS_EXPAND) \
35 * Translate a string into allocated memory, replacing special chars with
36 * printable chars. Returns NULL when out of memory.
37 *** ../vim-7.0.222/src/popupmnu.c Tue Aug 22 21:51:18 2006
38 --- src/popupmnu.c Sat Mar 24 21:07:39 2007
42 if (*p == NUL || *p == TAB || totwidth + w > pum_width)
44 ! /* Display the text that fits or comes before a Tab. */
45 ! screen_puts_len(s, (int)(p - s), row, col, attr);
51 if (*p == NUL || *p == TAB || totwidth + w > pum_width)
53 ! /* Display the text that fits or comes before a Tab.
54 ! * First convert it to printable characters. */
63 ! screen_puts_len(st, (int)STRLEN(st), row, col,
70 *** ../vim-7.0.222/src/version.c Tue Mar 27 11:00:43 2007
71 --- src/version.c Tue Mar 27 12:42:15 2007
75 { /* Add new patch number below this line */
81 Violators can be fined, arrested or jailed for making ugly faces at a dog.
82 [real standing law in Oklahoma, United States of America]
84 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
85 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
86 \\\ download, build and distribute -- http://www.A-A-P.org ///
87 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///