1
0
forked from aniani/vim

updated for version 7.1-032

This commit is contained in:
Bram Moolenaar
2007-07-17 16:15:36 +00:00
parent 477933cdc3
commit 5f2c5dbd86
2 changed files with 10 additions and 5 deletions

View File

@@ -484,7 +484,8 @@ getcmdline(firstc, count, indent)
if (xpc.xp_context == EXPAND_MENUNAMES && p_wmnu) if (xpc.xp_context == EXPAND_MENUNAMES && p_wmnu)
{ {
/* Hitting <Down> after "emenu Name.": complete submenu */ /* Hitting <Down> after "emenu Name.": complete submenu */
if (ccline.cmdbuff[ccline.cmdpos - 1] == '.' && c == K_DOWN) if (c == K_DOWN && ccline.cmdpos > 0
&& ccline.cmdbuff[ccline.cmdpos - 1] == '.')
c = p_wc; c = p_wc;
else if (c == K_UP) else if (c == K_UP)
{ {
@@ -533,9 +534,11 @@ getcmdline(firstc, count, indent)
upseg[3] = PATHSEP; upseg[3] = PATHSEP;
upseg[4] = NUL; upseg[4] = NUL;
if (ccline.cmdbuff[ccline.cmdpos - 1] == PATHSEP if (c == K_DOWN
&& c == K_DOWN && ccline.cmdpos > 0
&& (ccline.cmdbuff[ccline.cmdpos - 2] != '.' && ccline.cmdbuff[ccline.cmdpos - 1] == PATHSEP
&& (ccline.cmdpos < 3
|| ccline.cmdbuff[ccline.cmdpos - 2] != '.'
|| ccline.cmdbuff[ccline.cmdpos - 3] != '.')) || ccline.cmdbuff[ccline.cmdpos - 3] != '.'))
{ {
/* go down a directory */ /* go down a directory */
@@ -730,8 +733,8 @@ getcmdline(firstc, count, indent)
/* In Ex mode a backslash escapes a newline. */ /* In Ex mode a backslash escapes a newline. */
if (exmode_active if (exmode_active
&& c != ESC && c != ESC
&& ccline.cmdpos > 0
&& ccline.cmdpos == ccline.cmdlen && ccline.cmdpos == ccline.cmdlen
&& ccline.cmdpos > 0
&& ccline.cmdbuff[ccline.cmdpos - 1] == '\\') && ccline.cmdbuff[ccline.cmdpos - 1] == '\\')
{ {
if (c == K_KENTER) if (c == K_KENTER)

View File

@@ -666,6 +666,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 */
/**/
32,
/**/ /**/
31, 31,
/**/ /**/