aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-09-02 11:35:44 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-09-05 15:01:06 +0200
commitd47b538f39e3e9700a18f1cd72e561086f62d7f3 (patch)
tree23818da2fc3dfc04725ba596f050e62264e1aa86
parent4bf953cca4539f3d3fdde19d815f4593e2fec152 (diff)
downloadrneovim-d47b538f39e3e9700a18f1cd72e561086f62d7f3.tar.gz
rneovim-d47b538f39e3e9700a18f1cd72e561086f62d7f3.tar.bz2
rneovim-d47b538f39e3e9700a18f1cd72e561086f62d7f3.zip
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.
-rw-r--r--src/nvim/ex_getln.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c
index fd7ad7a4b5..9bfa9e22df 100644
--- a/src/nvim/ex_getln.c
+++ b/src/nvim/ex_getln.c
@@ -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) {