1
0
forked from aniani/vim

updated for version 7.2a-016

This commit is contained in:
Bram Moolenaar
2008-07-07 19:23:37 +00:00
parent b3c722a015
commit 990d95c079
2 changed files with 20 additions and 6 deletions

View File

@@ -676,6 +676,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
16,
/**/ /**/
15, 15,
/**/ /**/

View File

@@ -149,12 +149,18 @@ do_window(nchar, Prenum, xchar)
case Ctrl_V: case Ctrl_V:
case 'v': case 'v':
CHECK_CMDWIN CHECK_CMDWIN
#ifdef FEAT_VISUAL # ifdef FEAT_VISUAL
reset_VIsual_and_resel(); /* stop Visual mode */ reset_VIsual_and_resel(); /* stop Visual mode */
#endif # endif
#ifdef FEAT_GUI # ifdef FEAT_QUICKFIX
/* When splitting the quickfix window open a new buffer in it,
* don't replicate the quickfix buffer. */
if (bt_quickfix(curbuf))
goto newwindow;
# endif
# ifdef FEAT_GUI
need_mouse_correct = TRUE; need_mouse_correct = TRUE;
#endif # endif
win_split((int)Prenum, WSP_VERT); win_split((int)Prenum, WSP_VERT);
break; break;
#endif #endif
@@ -168,7 +174,8 @@ do_window(nchar, Prenum, xchar)
#endif #endif
STRCPY(cbuf, "split #"); STRCPY(cbuf, "split #");
if (Prenum) if (Prenum)
sprintf((char *)cbuf + 7, "%ld", Prenum); vim_snprintf((char *)cbuf + 7, sizeof(cbuf) - 7,
"%ld", Prenum);
do_cmdline_cmd(cbuf); do_cmdline_cmd(cbuf);
break; break;
@@ -183,9 +190,14 @@ do_window(nchar, Prenum, xchar)
newwindow: newwindow:
#endif #endif
if (Prenum) if (Prenum)
sprintf((char *)cbuf, "%ld", Prenum); /* window height */ /* window height */
vim_snprintf((char *)cbuf, sizeof(cbuf) - 5, "%ld", Prenum);
else else
cbuf[0] = NUL; cbuf[0] = NUL;
#if defined(FEAT_VERTSPLIT) && defined(FEAT_QUICKFIX)
if (nchar == 'v' || nchar == Ctrl_V)
STRCAT(cbuf, "v");
#endif
STRCAT(cbuf, "new"); STRCAT(cbuf, "new");
do_cmdline_cmd(cbuf); do_cmdline_cmd(cbuf);
break; break;