Skip to content

Commit

Permalink
patch 7.4.928
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
brammool committed Nov 19, 2015
1 parent 9b1067e commit 5d8afeb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/os_unix.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -741,6 +741,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
928,
/**/
927,
/**/
Expand Down

0 comments on commit 5d8afeb

Please sign in to comment.