diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-07-14 17:06:12 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-07-14 17:06:12 +0100 |
commit | f754fe6a3d5384b5146c38a32db6da9d46e00c40 (patch) | |
tree | ac33c0dc436f941ebe1d00396d4f7a22ee1d3908 /src/ex_getln.c | |
parent | b26592a84c8f578c8fbe83cf02ebb47453de1683 (diff) |
patch 9.0.0051: using CTRL-C wih :append may hang Vimv9.0.0051
Problem: Using CTRL-C wih :append may hang Vim.
Solution: Reset got_int. (closes #10729, closes #10728)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r-- | src/ex_getln.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ex_getln.c b/src/ex_getln.c index 8dc03dc336..dd538941ef 100644 --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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); |