From: Bram Moolenaar Date: Tue, 13 Oct 2015 18:21:49 +0000 (+0200) Subject: patch 7.4.897 X-Git-Tag: v7.4.897 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4e86150ec5b5158da92b28938ea55819dc890a14;p=vim patch 7.4.897 Problem: Freeze and crash when there is a sleep in a remote command. (Karl Yngve LervÄg) Solution: Remove a message from the queue before dealing with it. (James Kolb) --- diff --git a/src/if_xcmdsrv.c b/src/if_xcmdsrv.c index cf6d9a77a..b1fbdaa35 100644 --- a/src/if_xcmdsrv.c +++ b/src/if_xcmdsrv.c @@ -1235,9 +1235,9 @@ server_parse_messages() while (head.next != NULL && head.next != &head) { node = head.next; - server_parse_message(X_DISPLAY, node->propInfo, node->len); head.next = node->next; node->next->prev = node->prev; + server_parse_message(X_DISPLAY, node->propInfo, node->len); vim_free(node); } } diff --git a/src/version.c b/src/version.c index 83bfe2b08..71e1a2a8f 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 897, /**/ 896, /**/