fix(substitute): properly check for empty command line

This commit is contained in:
zeertzjq
2022-04-03 22:53:37 +08:00
parent d73bf3138a
commit 9955209afb
2 changed files with 10 additions and 9 deletions

View File

@@ -2330,8 +2330,6 @@ static int vgetorpeek(bool advance)
// cmdline window.
if (p_im && (State & INSERT)) {
c = Ctrl_L;
} else if ((State & CMDLINE) && exmode_active) {
c = '\n';
} else if ((State & CMDLINE) || (cmdwin_type > 0 && tc == ESC)) {
c = Ctrl_C;
} else {