]> git.pld-linux.org Git - packages/vim.git/blame - 7.2.091
- new
[packages/vim.git] / 7.2.091
CommitLineData
3e524028
AG
1To: vim-dev@vim.org
2Subject: Patch 7.2.091
3Fcc: outbox
4From: Bram Moolenaar <Bram@moolenaar.net>
5Mime-Version: 1.0
6Content-Type: text/plain; charset=ISO-8859-1
7Content-Transfer-Encoding: 8bit
8------------
9
10Patch 7.2.091
11Problem: ":cs help" output is not aligned for some languages.
12Solution: Compute character size instead of byte size. (Dominique Pelle)
13Files: src/if_cscope.c
14
15
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
18***************
19*** 1177,1184 ****
20 (void)MSG_PUTS(_("cscope commands:\n"));
21 while (cmdp->name != NULL)
22 {
23! (void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"),
24! cmdp->name, _(cmdp->help), cmdp->usage);
25 if (strcmp(cmdp->name, "find") == 0)
26 MSG_PUTS(_("\n"
27 " c: Find functions calling this function\n"
28--- 1177,1192 ----
29 (void)MSG_PUTS(_("cscope commands:\n"));
30 while (cmdp->name != NULL)
31 {
32! char *help = _(cmdp->help);
33! int space_cnt = 30 - vim_strsize((char_u *)help);
34!
35! /* Use %*s rather than %30s to ensure proper alignment in utf-8 */
36! if (space_cnt < 0)
37! space_cnt = 0;
38! (void)smsg((char_u *)_("%-5s: %s%*s (Usage: %s)"),
39! cmdp->name,
40! help, space_cnt, " ",
41! cmdp->usage);
42 if (strcmp(cmdp->name, "find") == 0)
43 MSG_PUTS(_("\n"
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
47***************
48*** 678,679 ****
49--- 678,681 ----
50 { /* Add new patch number below this line */
51+ /**/
52+ 91,
53 /**/
54
55--
56How To Keep A Healthy Level Of Insanity:
5718. When leaving the zoo, start running towards the parking lot,
58 yelling "run for your lives, they're loose!!"
59
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 ///
This page took 0.091176 seconds and 4 git commands to generate.