Karsten Hopp 304600
To: vim_dev@googlegroups.com
Karsten Hopp 304600
Subject: Patch 7.4.928
Karsten Hopp 304600
Fcc: outbox
Karsten Hopp 304600
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 304600
Mime-Version: 1.0
Karsten Hopp 304600
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 304600
Content-Transfer-Encoding: 8bit
Karsten Hopp 304600
------------
Karsten Hopp 304600
Karsten Hopp 304600
Patch 7.4.928
Karsten Hopp 304600
Problem:    A clientserver message interrupts handling keys of a mapping.
Karsten Hopp 304600
Solution:   Have mch_inchar() send control back to WaitForChar when it is
Karsten Hopp 304600
            interrupted by server message. (James Kolb)
Karsten Hopp 304600
Files:      src/os_unix.c
Karsten Hopp 304600
Karsten Hopp 304600
Karsten Hopp 304600
*** ../vim-7.4.927/src/os_unix.c	2015-09-15 14:12:01.386632480 +0200
Karsten Hopp 304600
--- src/os_unix.c	2015-11-19 19:48:25.901196707 +0100
Karsten Hopp 304600
***************
Karsten Hopp 304600
*** 401,409 ****
Karsten Hopp 304600
      {
Karsten Hopp 304600
  	while (WaitForChar(wtime) == 0)		/* no character available */
Karsten Hopp 304600
  	{
Karsten Hopp 304600
! 	    if (!do_resize)	/* return if not interrupted by resize */
Karsten Hopp 304600
  		return 0;
Karsten Hopp 304600
- 	    handle_resize();
Karsten Hopp 304600
  #ifdef MESSAGE_QUEUE
Karsten Hopp 304600
  	    parse_queued_messages();
Karsten Hopp 304600
  #endif
Karsten Hopp 304600
--- 401,415 ----
Karsten Hopp 304600
      {
Karsten Hopp 304600
  	while (WaitForChar(wtime) == 0)		/* no character available */
Karsten Hopp 304600
  	{
Karsten Hopp 304600
! 	    if (do_resize)
Karsten Hopp 304600
! 		handle_resize();
Karsten Hopp 304600
! #ifdef FEAT_CLIENTSERVER
Karsten Hopp 304600
! 	    else if (!server_waiting())
Karsten Hopp 304600
! #else
Karsten Hopp 304600
! 	    else
Karsten Hopp 304600
! #endif
Karsten Hopp 304600
! 		/* return if not interrupted by resize or server */
Karsten Hopp 304600
  		return 0;
Karsten Hopp 304600
  #ifdef MESSAGE_QUEUE
Karsten Hopp 304600
  	    parse_queued_messages();
Karsten Hopp 304600
  #endif
Karsten Hopp 304600
*** ../vim-7.4.927/src/version.c	2015-11-19 19:33:10.850992480 +0100
Karsten Hopp 304600
--- src/version.c	2015-11-19 19:44:41.791599027 +0100
Karsten Hopp 304600
***************
Karsten Hopp 304600
*** 743,744 ****
Karsten Hopp 304600
--- 743,746 ----
Karsten Hopp 304600
  {   /* Add new patch number below this line */
Karsten Hopp 304600
+ /**/
Karsten Hopp 304600
+     928,
Karsten Hopp 304600
  /**/
Karsten Hopp 304600
Karsten Hopp 304600
-- 
Karsten Hopp 304600
hundred-and-one symptoms of being an internet addict:
Karsten Hopp 304600
118. You are on a first-name basis with your ISP's staff.
Karsten Hopp 304600
Karsten Hopp 304600
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 304600
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 304600
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 304600
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///