diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-11-26 15:13:33 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-11-26 15:13:33 +0100 |
commit | 8a8199e4a1814b10630a770165502abb1121cd1b (patch) | |
tree | c6fe9958116a7cea4ca4bcbdb18c2b3f33bf4530 /src/misc2.c | |
parent | 7554da4033498c4da0af3cde542c3e87e9097b73 (diff) | |
download | vim-git-8a8199e4a1814b10630a770165502abb1121cd1b.tar.gz |
patch 8.0.0103v8.0.0103
Problem: May not process channel readahead. (skywind)
Solution: If there is readahead don't block on input.
Diffstat (limited to 'src/misc2.c')
-rw-r--r-- | src/misc2.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/misc2.c b/src/misc2.c index 9fa11e3d2..7f23c43e9 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -6264,7 +6264,7 @@ parse_queued_messages(void) } #endif -#ifdef ELAPSED_TIMEVAL /* proto is defined in vim.h */ +#ifdef ELAPSED_TIMEVAL /* no PROTO here, proto is defined in vim.h */ /* * Return time in msec since "start_tv". */ @@ -6288,9 +6288,6 @@ elapsed(DWORD start_tick) { DWORD now = GetTickCount(); - if (now < start_tick) - /* overflow */ - return (long)now; return (long)now - (long)start_tick; } #endif |