From 9e2bcb5d23138d45a0b6f9c1542b5facc807efe7 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 18 Feb 2020 21:33:00 +0100 Subject: 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. --- src/getchar.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/getchar.c') diff --git a/src/getchar.c b/src/getchar.c index d056bcc5d1..b828c27dd4 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -3041,6 +3041,10 @@ vgetorpeek(int advance) #ifdef FEAT_CMDWIN tc = c; #endif + // return from main_loop() + if (pending_exmode_active) + exmode_active = EXMODE_NORMAL; + break; } -- cgit v1.2.3