4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: ":cs help" output is not aligned for some languages.
12 Solution: Compute character size instead of byte size. (Dominique Pelle)
13 Files: src/if_cscope.c
16 *** ../vim-7.2.090/src/if_cscope.c Mon Aug 25 04:35:13 2008
17 --- src/if_cscope.c Thu Jan 22 18:44:46 2009
20 (void)MSG_PUTS(_("cscope commands:\n"));
21 while (cmdp->name != NULL)
23 ! (void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"),
24 ! cmdp->name, _(cmdp->help), cmdp->usage);
25 if (strcmp(cmdp->name, "find") == 0)
27 " c: Find functions calling this function\n"
29 (void)MSG_PUTS(_("cscope commands:\n"));
30 while (cmdp->name != NULL)
32 ! char *help = _(cmdp->help);
33 ! int space_cnt = 30 - vim_strsize((char_u *)help);
35 ! /* Use %*s rather than %30s to ensure proper alignment in utf-8 */
38 ! (void)smsg((char_u *)_("%-5s: %s%*s (Usage: %s)"),
40 ! help, space_cnt, " ",
42 if (strcmp(cmdp->name, "find") == 0)
44 " c: Find functions calling this function\n"
45 *** ../vim-7.2.090/src/version.c Wed Jan 28 15:42:07 2009
46 --- src/version.c Wed Jan 28 16:02:25 2009
50 { /* Add new patch number below this line */
56 How To Keep A Healthy Level Of Insanity:
57 18. When leaving the zoo, start running towards the parking lot,
58 yelling "run for your lives, they're loose!!"
60 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
61 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
62 \\\ download, build and distribute -- http://www.A-A-P.org ///
63 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///