diff options
author | KunMing Xie <qqzz014@gmail.com> | 2017-09-03 16:58:32 +0800 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-09-03 10:58:32 +0200 |
commit | 11429f94293b95394df436cb09d64a528fa387db (patch) | |
tree | af21da59ed75acaabeb401aaeb7929e55039a4c0 /src/nvim/edit.c | |
parent | 7bfa4406c170bff95ec98548c40b7dd2b3e511c8 (diff) | |
download | rneovim-11429f94293b95394df436cb09d64a528fa387db.tar.gz rneovim-11429f94293b95394df436cb09d64a528fa387db.tar.bz2 rneovim-11429f94293b95394df436cb09d64a528fa387db.zip |
vim-patch:8.0.0247 (#7232)
Problem: Under some circumstances, one needs to type Ctrl-N or Ctrl-P twice
to have a menu entry selected. (Lifepillar)
Solution: call ins_compl_free(). (Christian Brabandt, closes vim/vim#1411)
https://github.com/vim/vim/commit/aed6d0b81a14a81433c0f3c2c65cef935100db33
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index ca62679fab..17f0b8ef82 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -2406,6 +2406,7 @@ void set_completion(colnr_T startcol, list_T *list) ins_compl_prep(' '); } ins_compl_clear(); + ins_compl_free(); compl_direction = FORWARD; if (startcol > curwin->w_cursor.col) |