Mercurial > vim
diff src/ex_getln.c @ 29419:b43cb3fd0c7b v9.0.0051
patch 9.0.0051: using CTRL-C wih :append may hang Vim
Commit: https://github.com/vim/vim/commit/f754fe6a3d5384b5146c38a32db6da9d46e00c40
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu Jul 14 17:06:12 2022 +0100
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 https://github.com/vim/vim/issues/10729, closes https://github.com/vim/vim/issues/10728)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 14 Jul 2022 18:15:06 +0200 |
parents | 2f2c3448a337 |
children | 34bb46847ba0 |
line wrap: on
line diff
--- 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);