mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
vim-patch:8.0.1588: popup menu hangs after typing CTRL-C
Problem: Popup menu hangs after typing CTRL-C.
Solution: Make CTRL-C exit the loop. (Ozaki Kiichi, closes vim/vim#2697)
52f18a112a
This commit is contained in:
parent
e4c2ff2da4
commit
5551a29d06
@ -1036,7 +1036,7 @@ void pum_show_popupmenu(vimmenu_T *menu)
|
||||
ui_flush();
|
||||
|
||||
int c = vgetc();
|
||||
if (c == ESC) {
|
||||
if (c == ESC || c == Ctrl_C) {
|
||||
break;
|
||||
} else if (c == CAR || c == NL) {
|
||||
// enter: select current item, if any, and close
|
||||
|
Loading…
Reference in New Issue
Block a user