From 5551a29d065d8b6632b61f327f22da9166c8f9c6 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 30 Jun 2022 16:00:56 +0800 Subject: 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 --- src/nvim/popupmnu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit