aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index bfaeada6de..e11db16c61 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -157,11 +157,11 @@ void event_init(void)
void event_teardown(void)
{
- if (!loop.deferred_events) {
+ if (!loop.events) {
return;
}
- loop_process_all_events(&loop);
+ queue_process_events(loop.events);
input_stop();
channel_teardown();
process_teardown(&loop);