patch 9.0.1665: empty CmdlineEnter autocommand causes errors in Ex mode

Problem:    Empty CmdlineEnter autocommand causes errors in Ex mode.
Solution:   Save and restore ex_pressedreturn. (Christian Brabandt,
            closes # 12581, closes #12578)
This commit is contained in:
Christian Brabandt
2023-06-25 22:34:22 +01:00
committed by Bram Moolenaar
parent 8154e642aa
commit 590aae3557
4 changed files with 11 additions and 4 deletions

View File

@ -9840,7 +9840,6 @@ is_loclist_cmd(int cmdidx)
}
#endif
#if defined(FEAT_TIMERS) || defined(PROTO)
int
get_pressedreturn(void)
{
@ -9852,4 +9851,3 @@ set_pressedreturn(int val)
{
ex_pressedreturn = val;
}
#endif