diff options
author | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-29 10:06:05 -0300 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2015-10-29 10:06:05 -0300 |
commit | 58962d89c8db631c04c35f84ca19eaf2c82b0059 (patch) | |
tree | bac981b93194b61b149e2e5a15baa5f95f5c852c /src/nvim/os/input.c | |
parent | 98b5ec565b955687ad7e2914378d999975b841df (diff) | |
parent | c2185833e83f05f7e252b40e56fbd5417e30cfd4 (diff) | |
download | rneovim-58962d89c8db631c04c35f84ca19eaf2c82b0059.tar.gz rneovim-58962d89c8db631c04c35f84ca19eaf2c82b0059.tar.bz2 rneovim-58962d89c8db631c04c35f84ca19eaf2c82b0059.zip |
Merge PR #3546 'Fix some regressions'
Diffstat (limited to 'src/nvim/os/input.c')
-rw-r--r-- | src/nvim/os/input.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index df803609ae..ef6b5ff6f5 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -82,9 +82,11 @@ static void cursorhold_event(void **argv) static void create_cursorhold_event(void) { - // If the queue had any items, this function should not have been - // called(inbuf_poll would return kInputAvail) - assert(queue_empty(loop.events)); + // If events are enabled and the queue has any items, this function should not + // have been called(inbuf_poll would return kInputAvail) + // TODO(tarruda): Cursorhold should be implemented as a timer set during the + // `state_check` callback for the states where it can be triggered. + assert(!events_enabled || queue_empty(loop.events)); queue_put(loop.events, cursorhold_event, 0); } |