comparison src/os_unix.c @ 10240:175b1116f96a v8.0.0018

commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 29 15:18:57 2016 +0200 patch 8.0.0018 Problem: When using ":sleep" channel input is not handled. Solution: When there is a channel check for input also when not in raw mode. Check every 100 msec.
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Sep 2016 15:30:05 +0200
parents 4aead6a9b7a9
children e86f23a078ca
comparison
equal deleted inserted replaced
10239:ebbc8d21105b 10240:175b1116f96a
5362 /* 5362 /*
5363 * Check for CTRL-C typed by reading all available characters. 5363 * Check for CTRL-C typed by reading all available characters.
5364 * In cooked mode we should get SIGINT, no need to check. 5364 * In cooked mode we should get SIGINT, no need to check.
5365 */ 5365 */
5366 void 5366 void
5367 mch_breakcheck(void) 5367 mch_breakcheck(int force)
5368 { 5368 {
5369 if (curr_tmode == TMODE_RAW && RealWaitForChar(read_cmd_fd, 0L, NULL, NULL)) 5369 if ((curr_tmode == TMODE_RAW || force)
5370 && RealWaitForChar(read_cmd_fd, 0L, NULL, NULL))
5370 fill_input_buf(FALSE); 5371 fill_input_buf(FALSE);
5371 } 5372 }
5372 5373
5373 /* 5374 /*
5374 * Wait "msec" msec until a character is available from the mouse, keyboard, 5375 * Wait "msec" msec until a character is available from the mouse, keyboard,