aboutsummaryrefslogtreecommitdiff
path: root/src/os/event.c
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-04-08 07:01:44 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-08 13:49:45 -0300
commit1fc7d6a0c514257cee9fb204cb83564b17354c11 (patch)
treec084cde4dbad56ce29ab07a3ffd247aea86cfbf9 /src/os/event.c
parent08059114349d689d2a45bbeb983fe78217ba5f1c (diff)
downloadrneovim-1fc7d6a0c514257cee9fb204cb83564b17354c11.tar.gz
rneovim-1fc7d6a0c514257cee9fb204cb83564b17354c11.tar.bz2
rneovim-1fc7d6a0c514257cee9fb204cb83564b17354c11.zip
Fix/add more files with to clint-files.txt
Diffstat (limited to 'src/os/event.c')
-rw-r--r--src/os/event.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/os/event.c b/src/os/event.c
index 9e95159dbc..fb3fffc35a 100644
--- a/src/os/event.c
+++ b/src/os/event.c
@@ -60,7 +60,7 @@ bool event_poll(int32_t ms)
if (ms > 0) {
// Calculate remaining time in milliseconds
- remaining = (end - uv_hrtime()) / 1e6;
+ remaining = (end - uv_hrtime()) / 1e6;
}
if (input_ready() || got_int) {
@@ -69,7 +69,7 @@ bool event_poll(int32_t ms)
}
if (!result || (ms >= 0 && remaining <= 0)) {
- // Or if we timed out
+ // Or if we timed out
return false;
}
}
@@ -133,11 +133,10 @@ static bool poll_uv_loop(int32_t ms)
uv_run(uv_default_loop(), run_mode);
} while (
// Continue running if ...
- !input_ready() && // we have no input
- kl_empty(event_queue) && // no events are waiting to be processed
- run_mode != UV_RUN_NOWAIT && // ms != 0
- !timed_out // we didn't get a timeout
- );
+ !input_ready() && // we have no input
+ kl_empty(event_queue) && // no events are waiting to be processed
+ run_mode != UV_RUN_NOWAIT && // ms != 0
+ !timed_out); // we didn't get a timeout
input_stop();