home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / patches / 7.1 / 7.1.070 < prev    next >
Encoding:
Internet Message Format  |  2007-11-19  |  1.5 KB

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