aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/event.c
diff options
context:
space:
mode:
authorScott Prager <splinterofchaos@gmail.com>2015-04-08 23:19:41 -0400
committerScott Prager <splinterofchaos@gmail.com>2015-04-08 23:19:41 -0400
commitbae1da3f74ec91b8a79c764aa0277d96c932b2aa (patch)
tree908b674361d62b864254dacad4f3af6b1b80db2e /src/nvim/os/event.c
parent0f6e25a9e4b1bdc9114d2acd5ceee1520b76e7aa (diff)
parent93a3e331a3e266b17115824f8f79dd296962de21 (diff)
downloadrneovim-bae1da3f74ec91b8a79c764aa0277d96c932b2aa.tar.gz
rneovim-bae1da3f74ec91b8a79c764aa0277d96c932b2aa.tar.bz2
rneovim-bae1da3f74ec91b8a79c764aa0277d96c932b2aa.zip
Merge pull request #2307 from splinterofchaos/system-null
[RFC] NULL and empty string bugs
Diffstat (limited to 'src/nvim/os/event.c')
-rw-r--r--src/nvim/os/event.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/os/event.c b/src/nvim/os/event.c
index 9bc509bb16..dbb9d337cf 100644
--- a/src/nvim/os/event.c
+++ b/src/nvim/os/event.c
@@ -124,7 +124,11 @@ void event_poll(int ms)
}
recursive--; // Can re-enter uv_run now
- process_events_from(immediate_events);
+
+ // In case this is run before event_init, don't process any events.
+ if (immediate_events) {
+ process_events_from(immediate_events);
+ }
}
bool event_has_deferred(void)