63ae2fb
To: vim-dev@vim.org
63ae2fb
Subject: patch 7.1.070 (extra)
63ae2fb
Fcc: outbox
63ae2fb
From: Bram Moolenaar <Bram@moolenaar.net>
63ae2fb
Mime-Version: 1.0
63ae2fb
Content-Type: text/plain; charset=ISO-8859-1
63ae2fb
Content-Transfer-Encoding: 8bit
63ae2fb
------------
63ae2fb
63ae2fb
Patch 7.1.070 (extra)
63ae2fb
Problem:    Win32 GUI: When using confirm() without a default button there
63ae2fb
	    still is a default choice.
63ae2fb
Solution:   Set focus on something else than a button. (Chris Lubinski)
63ae2fb
Files:	    src/gui_w32.c
63ae2fb
63ae2fb
63ae2fb
*** ../vim-7.1.069/src/gui_w32.c	Tue Jun 19 10:09:15 2007
63ae2fb
--- src/gui_w32.c	Sat Aug 11 17:39:50 2007
63ae2fb
***************
63ae2fb
*** 2894,2899 ****
63ae2fb
--- 2894,2903 ----
63ae2fb
  	(void)SetFocus(hwnd);
63ae2fb
  	if (dialog_default_button > IDCANCEL)
63ae2fb
  	    (void)SetFocus(GetDlgItem(hwnd, dialog_default_button));
63ae2fb
+ 	else
63ae2fb
+ 	    /* We don't have a default, set focus on another element of the
63ae2fb
+ 	     * dialog window, probably the icon */
63ae2fb
+ 	    (void)SetFocus(GetDlgItem(hwnd, DLG_NONBUTTON_CONTROL));
63ae2fb
  	return FALSE;
63ae2fb
      }
63ae2fb
  
63ae2fb
*** ../vim-7.1.069/src/version.c	Tue Aug 14 14:59:41 2007
63ae2fb
--- src/version.c	Tue Aug 14 16:55:41 2007
63ae2fb
***************
63ae2fb
*** 668,669 ****
63ae2fb
--- 668,671 ----
63ae2fb
  {   /* Add new patch number below this line */
63ae2fb
+ /**/
63ae2fb
+     70,
63ae2fb
  /**/
63ae2fb
63ae2fb
-- 
63ae2fb
You are not really successful until someone claims he sat
63ae2fb
beside you in school.
63ae2fb
63ae2fb
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
63ae2fb
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
63ae2fb
\\\        download, build and distribute -- http://www.A-A-P.org        ///
63ae2fb
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///