Karsten Hopp d5a7e7
To: vim_dev@googlegroups.com
Karsten Hopp d5a7e7
Subject: Patch 7.4.163
Karsten Hopp d5a7e7
Fcc: outbox
Karsten Hopp d5a7e7
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp d5a7e7
Mime-Version: 1.0
Karsten Hopp d5a7e7
Content-Type: text/plain; charset=UTF-8
Karsten Hopp d5a7e7
Content-Transfer-Encoding: 8bit
Karsten Hopp d5a7e7
------------
Karsten Hopp d5a7e7
Karsten Hopp d5a7e7
Patch 7.4.163 (after 7.4.142)
Karsten Hopp d5a7e7
Problem:    MS-Windows input doesn't work properly on Windows 7 and earlier.
Karsten Hopp d5a7e7
Solution:   Add a check for Windows 8. (Yasuhiro Matsumoto)
Karsten Hopp d5a7e7
Files:	    src/os_win32.c
Karsten Hopp d5a7e7
Karsten Hopp d5a7e7
Karsten Hopp d5a7e7
*** ../vim-7.4.162/src/os_win32.c	2014-01-24 19:55:33.078220735 +0100
Karsten Hopp d5a7e7
--- src/os_win32.c	2014-02-05 13:33:03.758078734 +0100
Karsten Hopp d5a7e7
***************
Karsten Hopp d5a7e7
*** 232,237 ****
Karsten Hopp d5a7e7
--- 232,239 ----
Karsten Hopp d5a7e7
  
Karsten Hopp d5a7e7
  static char_u *exe_path = NULL;
Karsten Hopp d5a7e7
  
Karsten Hopp d5a7e7
+ static BOOL win8_or_later = FALSE;
Karsten Hopp d5a7e7
+ 
Karsten Hopp d5a7e7
  /*
Karsten Hopp d5a7e7
   * Version of ReadConsoleInput() that works with IME.
Karsten Hopp d5a7e7
   * Works around problems on Windows 8.
Karsten Hopp d5a7e7
***************
Karsten Hopp d5a7e7
*** 252,257 ****
Karsten Hopp d5a7e7
--- 254,266 ----
Karsten Hopp d5a7e7
      static DWORD s_dwMax = 0;
Karsten Hopp d5a7e7
      DWORD dwEvents;
Karsten Hopp d5a7e7
  
Karsten Hopp d5a7e7
+     if (!win8_or_later)
Karsten Hopp d5a7e7
+     {
Karsten Hopp d5a7e7
+ 	if (nLength == -1)
Karsten Hopp d5a7e7
+ 	    return PeekConsoleInput(hInput, lpBuffer, 1, lpEvents);
Karsten Hopp d5a7e7
+ 	return ReadConsoleInput(hInput, lpBuffer, 1, &dwEvents);
Karsten Hopp d5a7e7
+     }
Karsten Hopp d5a7e7
+ 
Karsten Hopp d5a7e7
      if (s_dwMax == 0)
Karsten Hopp d5a7e7
      {
Karsten Hopp d5a7e7
  	if (nLength == -1)
Karsten Hopp d5a7e7
***************
Karsten Hopp d5a7e7
*** 617,622 ****
Karsten Hopp d5a7e7
--- 626,635 ----
Karsten Hopp d5a7e7
  
Karsten Hopp d5a7e7
  	g_PlatformId = ovi.dwPlatformId;
Karsten Hopp d5a7e7
  
Karsten Hopp d5a7e7
+ 	if ((ovi.dwMajorVersion == 6 && ovi.dwMinorVersion >= 2)
Karsten Hopp d5a7e7
+ 		|| ovi.dwMajorVersion > 6)
Karsten Hopp d5a7e7
+ 	    win8_or_later = TRUE;
Karsten Hopp d5a7e7
+ 
Karsten Hopp d5a7e7
  #ifdef HAVE_ACL
Karsten Hopp d5a7e7
  	/*
Karsten Hopp d5a7e7
  	 * Load the ADVAPI runtime if we are on anything
Karsten Hopp d5a7e7
*** ../vim-7.4.162/src/version.c	2014-02-05 12:36:36.622026833 +0100
Karsten Hopp d5a7e7
--- src/version.c	2014-02-05 13:31:31.618077322 +0100
Karsten Hopp d5a7e7
***************
Karsten Hopp d5a7e7
*** 740,741 ****
Karsten Hopp d5a7e7
--- 740,743 ----
Karsten Hopp d5a7e7
  {   /* Add new patch number below this line */
Karsten Hopp d5a7e7
+ /**/
Karsten Hopp d5a7e7
+     163,
Karsten Hopp d5a7e7
  /**/
Karsten Hopp d5a7e7
Karsten Hopp d5a7e7
-- 
Karsten Hopp d5a7e7
hundred-and-one symptoms of being an internet addict:
Karsten Hopp d5a7e7
266. You hear most of your jokes via e-mail instead of in person.
Karsten Hopp d5a7e7
Karsten Hopp d5a7e7
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp d5a7e7
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp d5a7e7
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp d5a7e7
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///