0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 9.0.0051: using CTRL-C wih :append may hang Vim

Problem:    Using CTRL-C wih :append may hang Vim.
Solution:   Reset got_int. (closes #10729, closes #10728)
This commit is contained in:
zeertzjq
2022-07-14 17:06:12 +01:00
committed by Bram Moolenaar
parent b26592a84c
commit f754fe6a3d
3 changed files with 27 additions and 0 deletions

View File

@@ -1786,6 +1786,8 @@ getcmdline_int(
// that occurs while typing a command should
// cause the command not to be executed.
got_int = FALSE; // avoid infinite Ctrl-C loop in Ex mode
// Trigger SafeState if nothing is pending.
may_trigger_safestate(xpc.xp_numfiles <= 0);