1
0
forked from aniani/vim

patch 7.4.784

Problem:    Using both "noinsert" and "noselect" in 'completeopt' does not
            work properly.
Solution:   Change the ins_complete() calls. (Ozaki Kiichi)
This commit is contained in:
Bram Moolenaar
2015-07-17 13:42:23 +02:00
parent 2536d4f396
commit 2cf6938706
2 changed files with 5 additions and 8 deletions

View File

@@ -2794,16 +2794,11 @@ set_completion(startcol, list)
compl_curr_match = compl_first_match; compl_curr_match = compl_first_match;
if (compl_no_insert) if (compl_no_insert)
{ ins_complete(K_DOWN);
if (!compl_no_select)
ins_complete(K_DOWN);
}
else else
{
ins_complete(Ctrl_N); ins_complete(Ctrl_N);
if (compl_no_select) if (compl_no_select)
ins_complete(Ctrl_P); ins_complete(Ctrl_P);
}
out_flush(); out_flush();
} }

View File

@@ -741,6 +741,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 */
/**/
784,
/**/ /**/
783, 783,
/**/ /**/