eventloop: do not redraw in cmdline K_EVENT handler

If :echo is done by an timer or event (such as FocusGained/FocusLost),
redrawcmdline() clobbers it.
This commit is contained in:
Justin M. Keyes 2017-09-02 11:35:44 +02:00
parent 4bf953cca4
commit d47b538f39

View File

@ -441,8 +441,7 @@ static int command_line_execute(VimState *state, int key)
if (s->c == K_EVENT) {
multiqueue_process_events(main_loop.events);
redrawcmdline();
return 1;
return command_line_not_changed(s);
}
if (KeyTyped) {