0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 7.4.2014

Problem:    Using "noinsert" in 'completeopt' does not insert match.
Solution:   Set compl_enter_selects. (Shougo, closes #875)
This commit is contained in:
Bram Moolenaar
2016-07-09 21:57:20 +02:00
parent 67081e5061
commit 32b808a4bd
3 changed files with 16 additions and 1 deletions

View File

@@ -2831,6 +2831,7 @@ set_completion(colnr_T startcol, list_T *list)
}
else
ins_complete(Ctrl_N, FALSE);
compl_enter_selects = compl_no_insert;
/* Lazily show the popup menu, unless we got interrupted. */
if (!compl_interrupted)