Karsten Hopp 22f788
To: vim_dev@googlegroups.com
Karsten Hopp 22f788
Subject: Patch 7.4.125
Karsten Hopp 22f788
Fcc: outbox
Karsten Hopp 22f788
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 22f788
Mime-Version: 1.0
Karsten Hopp 22f788
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 22f788
Content-Transfer-Encoding: 8bit
Karsten Hopp 22f788
------------
Karsten Hopp 22f788
Karsten Hopp 22f788
Patch 7.4.125
Karsten Hopp 22f788
Problem:    Win32: Dealing with messages may not work for multi-byte chars.
Karsten Hopp 22f788
Solution:   Use pDispatchMessage(). (Ken Takata)
Karsten Hopp 22f788
Files:	    src/os_win32.c
Karsten Hopp 22f788
Karsten Hopp 22f788
Karsten Hopp 22f788
*** ../vim-7.4.124/src/os_win32.c	2013-12-11 18:21:41.000000000 +0100
Karsten Hopp 22f788
--- src/os_win32.c	2013-12-11 18:23:47.000000000 +0100
Karsten Hopp 22f788
***************
Karsten Hopp 22f788
*** 4282,4291 ****
Karsten Hopp 22f788
      {
Karsten Hopp 22f788
  	MSG	msg;
Karsten Hopp 22f788
  
Karsten Hopp 22f788
! 	if (PeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
Karsten Hopp 22f788
  	{
Karsten Hopp 22f788
  	    TranslateMessage(&msg;;
Karsten Hopp 22f788
! 	    DispatchMessage(&msg;;
Karsten Hopp 22f788
  	}
Karsten Hopp 22f788
  
Karsten Hopp 22f788
  	/* write pipe information in the window */
Karsten Hopp 22f788
--- 4282,4291 ----
Karsten Hopp 22f788
      {
Karsten Hopp 22f788
  	MSG	msg;
Karsten Hopp 22f788
  
Karsten Hopp 22f788
! 	if (pPeekMessage(&msg, (HWND)NULL, 0, 0, PM_REMOVE))
Karsten Hopp 22f788
  	{
Karsten Hopp 22f788
  	    TranslateMessage(&msg;;
Karsten Hopp 22f788
! 	    pDispatchMessage(&msg;;
Karsten Hopp 22f788
  	}
Karsten Hopp 22f788
  
Karsten Hopp 22f788
  	/* write pipe information in the window */
Karsten Hopp 22f788
*** ../vim-7.4.124/src/version.c	2013-12-11 18:21:41.000000000 +0100
Karsten Hopp 22f788
--- src/version.c	2013-12-11 18:35:44.000000000 +0100
Karsten Hopp 22f788
***************
Karsten Hopp 22f788
*** 740,741 ****
Karsten Hopp 22f788
--- 740,743 ----
Karsten Hopp 22f788
  {   /* Add new patch number below this line */
Karsten Hopp 22f788
+ /**/
Karsten Hopp 22f788
+     125,
Karsten Hopp 22f788
  /**/
Karsten Hopp 22f788
Karsten Hopp 22f788
-- 
Karsten Hopp 22f788
Don't believe everything you hear or anything you say.
Karsten Hopp 22f788
Karsten Hopp 22f788
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 22f788
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 22f788
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 22f788
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///