summaryrefslogtreecommitdiff
path: root/src/misc2.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-11-26 15:13:33 +0100
committerBram Moolenaar <Bram@vim.org>2016-11-26 15:13:33 +0100
commit8a8199e4a1814b10630a770165502abb1121cd1b (patch)
treec6fe9958116a7cea4ca4bcbdb18c2b3f33bf4530 /src/misc2.c
parent7554da4033498c4da0af3cde542c3e87e9097b73 (diff)
downloadvim-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.c5
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