patch 8.2.2548: May get stuck in the cmdline window using :normal
Problem: May get stuck in the cmdline window using :normal.
Solution: Have nv_esc() return K_IGNORE.
diff --git a/src/normal.c b/src/normal.c
index d2f4159..4299a90 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -6944,6 +6944,16 @@
}
#endif
}
+#ifdef FEAT_CMDWIN
+ else if (cmdwin_type != 0 && ex_normal_busy)
+ {
+ // When :normal runs out of characters while in the command line window
+ // vgetorpeek() will return ESC. Exit the cmdline window to break the
+ // loop.
+ cmdwin_result = K_IGNORE;
+ return;
+ }
+#endif
if (VIsual_active)
{