neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 5551a29d065d8b6632b61f327f22da9166c8f9c6
parent e4c2ff2da4fb1986e0cd88e6eea9d49ddaec9817
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Thu, 30 Jun 2022 16:00:56 +0800

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

Diffstat:
Msrc/nvim/popupmnu.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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