diff src/globals.h @ 19433:af9d5585cfbf v8.2.0274

patch 8.2.0274: hang with combination of feedkeys(), Ex mode and :global Commit: https://github.com/vim/vim/commit/9e2bcb5d23138d45a0b6f9c1542b5facc807efe7 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 18 21:33:00 2020 +0100 patch 8.2.0274: hang with combination of feedkeys(), Ex mode and :global Problem: Hang with combination of feedkeys(), Ex mode and :global. (Yegappan Lakshmanan) Solution: Add the pending_exmode_active flag.
author Bram Moolenaar <Bram@vim.org>
date Tue, 18 Feb 2020 21:45:04 +0100
parents 764caba332cf
children f41e46f02c8c
line wrap: on
line diff
--- a/src/globals.h
+++ b/src/globals.h
@@ -1028,6 +1028,10 @@ EXTERN int	motion_force INIT(= 0); // mo
  * Ex mode (Q) state
  */
 EXTERN int exmode_active INIT(= 0);	// zero, EXMODE_NORMAL or EXMODE_VIM
+
+// Flag set when main_loop() should exit when entering Ex mode.
+EXTERN int pending_exmode_active INIT(= FALSE);
+
 EXTERN int ex_no_reprint INIT(= FALSE); // no need to print after z or p
 
 EXTERN int reg_recording INIT(= 0);	// register for recording  or zero