diff options
| author | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-18 12:16:53 -0300 |
|---|---|---|
| committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-06-18 12:16:53 -0300 |
| commit | 090870ca047dee8d136f863ba742922fc265d6f4 (patch) | |
| tree | 28b5852d5c6ed9ebc415209d9c42bafa651b53b3 /src/nvim/os/input.c | |
| parent | d199d18159c624844c9c8052d1a98b91084fb803 (diff) | |
| parent | a7d027c8ab289d76eda91b6afe3be63a165d4adf (diff) | |
| download | rneovim-090870ca047dee8d136f863ba742922fc265d6f4.tar.gz rneovim-090870ca047dee8d136f863ba742922fc265d6f4.tar.bz2 rneovim-090870ca047dee8d136f863ba742922fc265d6f4.zip | |
Merge PR #853
Diffstat (limited to 'src/nvim/os/input.c')
| -rw-r--r-- | src/nvim/os/input.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nvim/os/input.c b/src/nvim/os/input.c index 3e9751a4db..6e42cba4ad 100644 --- a/src/nvim/os/input.c +++ b/src/nvim/os/input.c @@ -67,7 +67,7 @@ int os_inchar(uint8_t *buf, int maxlen, int32_t ms, int tb_change_cnt) { InbufPollResult result; - if (event_is_pending()) { + if (event_has_deferred()) { // Return pending event bytes return push_event_key(buf, maxlen); } @@ -91,8 +91,8 @@ int os_inchar(uint8_t *buf, int maxlen, int32_t ms, int tb_change_cnt) } } - // If there are pending events, return the keys directly - if (event_is_pending()) { + // If there are deferred events, return the keys directly + if (event_has_deferred()) { return push_event_key(buf, maxlen); } |
