aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/state.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-09-08 16:50:45 +0200
committerGitHub <noreply@github.com>2019-09-08 16:50:45 +0200
commit83632022f84e4addf9518bf9913cc58b2ae41820 (patch)
treed09e86ecd2f61d8e93175bceefa1468df0c586e3 /src/nvim/state.c
parentfa90f6cdaae800d9bfbc4f28ec04fb7456751dbe (diff)
parentc705e3fb0b70887aaebe4973ce02acc6be45eb97 (diff)
downloadrneovim-83632022f84e4addf9518bf9913cc58b2ae41820.tar.gz
rneovim-83632022f84e4addf9518bf9913cc58b2ae41820.tar.bz2
rneovim-83632022f84e4addf9518bf9913cc58b2ae41820.zip
Merge pull request #10959 from bfredl/resizequeue
fix crash on :!tmux split, redraw after resize in pager
Diffstat (limited to 'src/nvim/state.c')
-rw-r--r--src/nvim/state.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/nvim/state.c b/src/nvim/state.c
index dbf04eebec..81bc078a88 100644
--- a/src/nvim/state.c
+++ b/src/nvim/state.c
@@ -46,14 +46,12 @@ getkey:
// Event was made available after the last multiqueue_process_events call
key = K_EVENT;
} else {
- input_enable_events();
// Flush screen updates before blocking
ui_flush();
// Call `os_inchar` directly to block for events or user input without
// consuming anything from `input_buffer`(os/input.c) or calling the
// mapping engine.
- (void)os_inchar(NULL, 0, -1, 0);
- input_disable_events();
+ (void)os_inchar(NULL, 0, -1, 0, main_loop.events);
// If an event was put into the queue, we send K_EVENT directly.
key = !multiqueue_empty(main_loop.events)
? K_EVENT