Skip to content

Commit 5d8afeb

Browse files
committed
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)
1 parent 9b1067e commit 5d8afeb

2 files changed

Lines changed: 10 additions & 2 deletions

File tree

src/os_unix.c

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,9 +401,15 @@ mch_inchar(buf, maxlen, wtime, tb_change_cnt)
401401
{
402402
while (WaitForChar(wtime) == 0) /* no character available */
403403
{
404-
if (!do_resize) /* return if not interrupted by resize */
404+
if (do_resize)
405+
handle_resize();
406+
#ifdef FEAT_CLIENTSERVER
407+
else if (!server_waiting())
408+
#else
409+
else
410+
#endif
411+
/* return if not interrupted by resize or server */
405412
return 0;
406-
handle_resize();
407413
#ifdef MESSAGE_QUEUE
408414
parse_queued_messages();
409415
#endif

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -741,6 +741,8 @@ static char *(features[]) =
741741

742742
static int included_patches[] =
743743
{ /* Add new patch number below this line */
744+
/**/
745+
928,
744746
/**/
745747
927,
746748
/**/

0 commit comments

Comments
 (0)