diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-09-06 20:10:56 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-09-08 15:24:14 +0200 |
commit | e6b7613e89cc274198eec014180da6034442b3b6 (patch) | |
tree | e7deeaeb8f9b0da7b60f3efe06cde3434650d7d1 /src/nvim/message.c | |
parent | fa90f6cdaae800d9bfbc4f28ec04fb7456751dbe (diff) | |
download | rneovim-e6b7613e89cc274198eec014180da6034442b3b6.tar.gz rneovim-e6b7613e89cc274198eec014180da6034442b3b6.tar.bz2 rneovim-e6b7613e89cc274198eec014180da6034442b3b6.zip |
refactor: allow us to process a child queue only while waiting on input
Diffstat (limited to 'src/nvim/message.c')
-rw-r--r-- | src/nvim/message.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/nvim/message.c b/src/nvim/message.c index c499aa5f0c..5b5f14b99d 100644 --- a/src/nvim/message.c +++ b/src/nvim/message.c @@ -2587,8 +2587,10 @@ static int do_more_prompt(int typed_char) if (used_typed_char != NUL) { c = used_typed_char; /* was typed at hit-enter prompt */ used_typed_char = NUL; - } else - c = get_keystroke(); + } else { + c = get_keystroke(resize_events); + multiqueue_process_events(resize_events); + } toscroll = 0; @@ -3307,8 +3309,8 @@ do_dialog ( hotkeys = msg_show_console_dialog(message, buttons, dfltbutton); for (;; ) { - /* Get a typed character directly from the user. */ - c = get_keystroke(); + // Get a typed character directly from the user. + c = get_keystroke(NULL); switch (c) { case CAR: /* User accepts default option */ case NL: |