0
0
mirror of https://github.com/vim/vim.git synced 2025-09-28 04:24:06 -04:00

updated for version 7.3.519

Problem:    When completefunction returns it cannot indicate end of completion
            mode.
Solution:   Recognize completefunction returning -3.  (Mtsushita Shougo)
This commit is contained in:
Bram Moolenaar
2012-05-18 16:35:21 +02:00
parent a0149c7401
commit 8a4c136a90
2 changed files with 11 additions and 1 deletions

View File

@@ -5205,9 +5205,17 @@ ins_complete(c)
} }
/* Return value -2 means the user complete function wants to /* Return value -2 means the user complete function wants to
* cancel the complete without an error. */ * cancel the complete without an error.
* Return value -3 does the same as -2 and leaves CTRL-X mode.*/
if (col == -2) if (col == -2)
return FAIL; return FAIL;
if (col == -3)
{
ctrl_x_mode = 0;
edit_submode = NULL;
msg_clr_cmdline();
return FAIL;
}
/* /*
* Reset extended parameters of completion, when start new * Reset extended parameters of completion, when start new

View File

@@ -714,6 +714,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 */
/**/
519,
/**/ /**/
518, 518,
/**/ /**/