]> code.delx.au - gnu-emacs/commitdiff
Fix handling of 1st keystroke on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Sun, 2 Aug 2015 14:40:19 +0000 (17:40 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 2 Aug 2015 14:40:19 +0000 (17:40 +0300)
* src/w32fns.c (globals_of_w32fns): Initialize after_deadkey to -1.
This is needed to correctly handle the session's first keystroke,
if it has any modifiers.  (Bug#19994)

src/w32fns.c

index 1c72974dca882c063058b94d542d1e7c91d72690..31d23c4d37d2a97486ce356e5306598a3a86591f 100644 (file)
@@ -9442,6 +9442,8 @@ globals_of_w32fns (void)
   else
     w32_unicode_gui = 0;
 
+  after_deadkey = -1;
+
   /* MessageBox does not work without this when linked to comctl32.dll 6.0.  */
   InitCommonControls ();