|
Karsten Hopp |
0e113c |
To: vim-dev@vim.org
|
|
Karsten Hopp |
0e113c |
Subject: Patch 7.2.091
|
|
Karsten Hopp |
0e113c |
Fcc: outbox
|
|
Karsten Hopp |
0e113c |
From: Bram Moolenaar <Bram@moolenaar.net>
|
|
Karsten Hopp |
0e113c |
Mime-Version: 1.0
|
|
Karsten Hopp |
0e113c |
Content-Type: text/plain; charset=ISO-8859-1
|
|
Karsten Hopp |
0e113c |
Content-Transfer-Encoding: 8bit
|
|
Karsten Hopp |
0e113c |
------------
|
|
Karsten Hopp |
0e113c |
|
|
Karsten Hopp |
0e113c |
Patch 7.2.091
|
|
Karsten Hopp |
0e113c |
Problem: ":cs help" output is not aligned for some languages.
|
|
Karsten Hopp |
0e113c |
Solution: Compute character size instead of byte size. (Dominique Pelle)
|
|
Karsten Hopp |
0e113c |
Files: src/if_cscope.c
|
|
Karsten Hopp |
0e113c |
|
|
Karsten Hopp |
0e113c |
|
|
Karsten Hopp |
0e113c |
*** ../vim-7.2.090/src/if_cscope.c Mon Aug 25 04:35:13 2008
|
|
Karsten Hopp |
0e113c |
--- src/if_cscope.c Thu Jan 22 18:44:46 2009
|
|
Karsten Hopp |
0e113c |
***************
|
|
Karsten Hopp |
0e113c |
*** 1177,1184 ****
|
|
Karsten Hopp |
0e113c |
(void)MSG_PUTS(_("cscope commands:\n"));
|
|
Karsten Hopp |
0e113c |
while (cmdp->name != NULL)
|
|
Karsten Hopp |
0e113c |
{
|
|
Karsten Hopp |
0e113c |
! (void)smsg((char_u *)_("%-5s: %-30s (Usage: %s)"),
|
|
Karsten Hopp |
0e113c |
! cmdp->name, _(cmdp->help), cmdp->usage);
|
|
Karsten Hopp |
0e113c |
if (strcmp(cmdp->name, "find") == 0)
|
|
Karsten Hopp |
0e113c |
MSG_PUTS(_("\n"
|
|
Karsten Hopp |
0e113c |
" c: Find functions calling this function\n"
|
|
Karsten Hopp |
0e113c |
--- 1177,1192 ----
|
|
Karsten Hopp |
0e113c |
(void)MSG_PUTS(_("cscope commands:\n"));
|
|
Karsten Hopp |
0e113c |
while (cmdp->name != NULL)
|
|
Karsten Hopp |
0e113c |
{
|
|
Karsten Hopp |
0e113c |
! char *help = _(cmdp->help);
|
|
Karsten Hopp |
0e113c |
! int space_cnt = 30 - vim_strsize((char_u *)help);
|
|
Karsten Hopp |
0e113c |
!
|
|
Karsten Hopp |
0e113c |
! /* Use %*s rather than %30s to ensure proper alignment in utf-8 */
|
|
Karsten Hopp |
0e113c |
! if (space_cnt < 0)
|
|
Karsten Hopp |
0e113c |
! space_cnt = 0;
|
|
Karsten Hopp |
0e113c |
! (void)smsg((char_u *)_("%-5s: %s%*s (Usage: %s)"),
|
|
Karsten Hopp |
0e113c |
! cmdp->name,
|
|
Karsten Hopp |
0e113c |
! help, space_cnt, " ",
|
|
Karsten Hopp |
0e113c |
! cmdp->usage);
|
|
Karsten Hopp |
0e113c |
if (strcmp(cmdp->name, "find") == 0)
|
|
Karsten Hopp |
0e113c |
MSG_PUTS(_("\n"
|
|
Karsten Hopp |
0e113c |
" c: Find functions calling this function\n"
|
|
Karsten Hopp |
0e113c |
*** ../vim-7.2.090/src/version.c Wed Jan 28 15:42:07 2009
|
|
Karsten Hopp |
0e113c |
--- src/version.c Wed Jan 28 16:02:25 2009
|
|
Karsten Hopp |
0e113c |
***************
|
|
Karsten Hopp |
0e113c |
*** 678,679 ****
|
|
Karsten Hopp |
0e113c |
--- 678,681 ----
|
|
Karsten Hopp |
0e113c |
{ /* Add new patch number below this line */
|
|
Karsten Hopp |
0e113c |
+ /**/
|
|
Karsten Hopp |
0e113c |
+ 91,
|
|
Karsten Hopp |
0e113c |
/**/
|
|
Karsten Hopp |
0e113c |
|
|
Karsten Hopp |
0e113c |
--
|
|
Karsten Hopp |
0e113c |
How To Keep A Healthy Level Of Insanity:
|
|
Karsten Hopp |
0e113c |
18. When leaving the zoo, start running towards the parking lot,
|
|
Karsten Hopp |
0e113c |
yelling "run for your lives, they're loose!!"
|
|
Karsten Hopp |
0e113c |
|
|
Karsten Hopp |
0e113c |
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
|
|
Karsten Hopp |
0e113c |
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
|
|
Karsten Hopp |
0e113c |
\\\ download, build and distribute -- http://www.A-A-P.org ///
|
|
Karsten Hopp |
0e113c |
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
|