summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvimboss <devnull@localhost>2009-01-28 15:04:42 +0000
committervimboss <devnull@localhost>2009-01-28 15:04:42 +0000
commitc458fce1c8258d6c6f87d1a22314a89dd4d07fdc (patch)
treea5d8c17ae3870522750346e22a8e291751720266
parent2624729cad7fd7ed5942ede3f24c4b9917000cc6 (diff)
downloadvim-c458fce1c8258d6c6f87d1a22314a89dd4d07fdc.tar.gz
updated for version 7.2-091v7.2.091v7-2-091
-rw-r--r--src/if_cscope.c12
-rw-r--r--src/version.c2
2 files changed, 12 insertions, 2 deletions
diff --git a/src/if_cscope.c b/src/if_cscope.c
index 4dff1163..a9a0506b 100644
--- a/src/if_cscope.c
+++ b/src/if_cscope.c
@@ -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"
diff --git a/src/version.c b/src/version.c
index e1d674a7..7c2e51bd 100644
--- a/src/version.c
+++ b/src/version.c
@@ -677,6 +677,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 91,
+/**/
90,
/**/
89,