diff options
Diffstat (limited to 'src/nvim/edit.c')
-rw-r--r-- | src/nvim/edit.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/edit.c b/src/nvim/edit.c index cebd08af28..3e57bc8599 100644 --- a/src/nvim/edit.c +++ b/src/nvim/edit.c @@ -574,10 +574,8 @@ static int insert_check(VimState *state) foldCheckClose(); } - int cmdchar_todo = s->cmdchar; if (bt_prompt(curbuf)) { - init_prompt(cmdchar_todo); - cmdchar_todo = NUL; + init_prompt(s->cmdchar); } // If we inserted a character at the last position of the last line in the |