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