0
0
mirror of https://github.com/vim/vim.git synced 2025-10-17 07:44:28 -04:00

patch 8.0.0103

Problem:    May not process channel readahead. (skywind)
Solution:   If there is readahead don't block on input.
This commit is contained in:
Bram Moolenaar
2016-11-26 15:13:33 +01:00
parent 7554da4033
commit 8a8199e4a1
6 changed files with 40 additions and 5 deletions

View File

@@ -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