diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-07-09 21:57:20 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-07-09 21:57:20 +0200 |
commit | 32b808a4bdf35b0dea63c735702a591e5869fecd (patch) | |
tree | a7e02f6424d3fd4d9dfab6318cddcc46ace41e05 /src/edit.c | |
parent | 67081e50616ae9546621072c5eaaa59bd0a4bed7 (diff) |
patch 7.4.2014v7.4.2014
Problem: Using "noinsert" in 'completeopt' does not insert match.
Solution: Set compl_enter_selects. (Shougo, closes #875)
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/edit.c b/src/edit.c index 47c24f9d2f..4bce8a30c7 100644 --- a/src/edit.c +++ b/src/edit.c @@ -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) |