aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-06-30 16:00:56 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-07-01 10:17:39 +0800
commit5551a29d065d8b6632b61f327f22da9166c8f9c6 (patch)
treeb5cf8bcb39327d4625624f85ce825e0eeedc44ed
parente4c2ff2da4fb1986e0cd88e6eea9d49ddaec9817 (diff)
downloadrneovim-5551a29d065d8b6632b61f327f22da9166c8f9c6.tar.gz
rneovim-5551a29d065d8b6632b61f327f22da9166c8f9c6.tar.bz2
rneovim-5551a29d065d8b6632b61f327f22da9166c8f9c6.zip
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) https://github.com/vim/vim/commit/52f18a112a073c39187cd93f26115d1e2bfd29ce
-rw-r--r--src/nvim/popupmnu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/popupmnu.c b/src/nvim/popupmnu.c
index 515fecb036..087e9bb041 100644
--- a/src/nvim/popupmnu.c
+++ b/src/nvim/popupmnu.c
@@ -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