aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/input.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-06-18 12:16:53 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-06-18 12:16:53 -0300
commit090870ca047dee8d136f863ba742922fc265d6f4 (patch)
tree28b5852d5c6ed9ebc415209d9c42bafa651b53b3 /src/nvim/os/input.c
parentd199d18159c624844c9c8052d1a98b91084fb803 (diff)
parenta7d027c8ab289d76eda91b6afe3be63a165d4adf (diff)
downloadrneovim-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.c6
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);
}