0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -04:00

patch 7.4.928

Problem:    A clientserver message interrupts handling keys of a mapping.
Solution:   Have mch_inchar() send control back to WaitForChar when it is
            interrupted by server message. (James Kolb)
This commit is contained in:
Bram Moolenaar
2015-11-19 19:55:16 +01:00
parent 9b1067e038
commit 5d8afebb5b
2 changed files with 10 additions and 2 deletions

View File

@@ -401,9 +401,15 @@ mch_inchar(buf, maxlen, wtime, tb_change_cnt)
{
while (WaitForChar(wtime) == 0) /* no character available */
{
if (!do_resize) /* return if not interrupted by resize */
if (do_resize)
handle_resize();
#ifdef FEAT_CLIENTSERVER
else if (!server_waiting())
#else
else
#endif
/* return if not interrupted by resize or server */
return 0;
handle_resize();
#ifdef MESSAGE_QUEUE
parse_queued_messages();
#endif