]> granicus.if.org Git - vim/commitdiff
updated for version 7.2-091 v7.2.091
authorBram Moolenaar <Bram@vim.org>
Wed, 28 Jan 2009 15:04:42 +0000 (15:04 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 28 Jan 2009 15:04:42 +0000 (15:04 +0000)
src/if_cscope.c
src/version.c

index 4dff11631eab7df00c7821974c6c649bd1b21b0b..a9a0506b80dd85fba66f150b85c22565ce788a45 100644 (file)
@@ -1177,8 +1177,16 @@ cs_help(eap)
     (void)MSG_PUTS(_("cscope commands:\n"));
     while (cmdp->name != NULL)
     {
-       (void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"),
-                                     cmdp->name, _(cmdp->help), cmdp->usage);
+       char *help = _(cmdp->help);
+       int  space_cnt = 30 - vim_strsize((char_u *)help);
+
+       /* Use %*s rather than %30s to ensure proper alignment in utf-8 */
+       if (space_cnt < 0)
+           space_cnt = 0;
+       (void)smsg((char_u *)_("%-5s: %s%*s (Usage: %s)"),
+                                     cmdp->name,
+                                     help, space_cnt, " ",
+                                     cmdp->usage);
        if (strcmp(cmdp->name, "find") == 0)
            MSG_PUTS(_("\n"
                       "       c: Find functions calling this function\n"
index e1d674a7993550d06f026ec8f60ee312442079ca..7c2e51bd712d3cb8df78ef03210e553f3095dbb3 100644 (file)
@@ -676,6 +676,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    91,
 /**/
     90,
 /**/