diff options
author | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-25 20:55:37 +0200 |
---|---|---|
committer | KillTheMule <KillTheMule@users.noreply.github.com> | 2016-04-29 19:46:53 +0200 |
commit | 0786ebe305f882fe6d9cd8771fdc821dcaad46a6 (patch) | |
tree | 4be52e7e401c869539bc2ec30e3fce97cb043e48 /src/nvim/edit.c | |
parent | 126e4758076aec243a05c5e838c2a7f5197ad678 (diff) | |
download | rneovim-0786ebe305f882fe6d9cd8771fdc821dcaad46a6.tar.gz rneovim-0786ebe305f882fe6d9cd8771fdc821dcaad46a6.tar.bz2 rneovim-0786ebe305f882fe6d9cd8771fdc821dcaad46a6.zip |
vim-patch:7.4.882
Problem: When leaving the command line window with CTRL-C while a
completion menu is displayed the menu isn't removed.
Solution: Force a screen update. (Hirohito Higashi)
https://github.com/vim/vim/commit/5f1fea28f5bc573e2430773c49e95ae1f9cc2a25
Applied manually.
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index 26966b35c1..df5d5bb0fd 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -3306,6 +3306,12 @@ static bool ins_compl_prep(int c) showmode(); } + // Avoid the popup menu remains displayed when leaving the + // command line window. + if (c == Ctrl_C && cmdwin_type != 0) { + update_screen(0); + } + /* * Indent now if a key was typed that is in 'cinkeys'. */ |