Skip to content

Commit 7d41410

Browse files
committed
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.
1 parent 2c65534 commit 7d41410

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/normal.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6944,6 +6944,16 @@ nv_esc(cmdarg_T *cap)
69446944
}
69456945
#endif
69466946
}
6947+
#ifdef FEAT_CMDWIN
6948+
else if (cmdwin_type != 0 && ex_normal_busy)
6949+
{
6950+
// When :normal runs out of characters while in the command line window
6951+
// vgetorpeek() will return ESC. Exit the cmdline window to break the
6952+
// loop.
6953+
cmdwin_result = K_IGNORE;
6954+
return;
6955+
}
6956+
#endif
69476957

69486958
if (VIsual_active)
69496959
{

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,8 @@ static char *(features[]) =
750750

751751
static int included_patches[] =
752752
{ /* Add new patch number below this line */
753+
/**/
754+
2548,
753755
/**/
754756
2547,
755757
/**/

0 commit comments

Comments
 (0)