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 / 6.1.147 < prev    next >
Encoding:
Internet Message Format  |  2002-08-03  |  3.3 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.147 (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 6.1.147 (extra)
  11. Problem:    MS-Windows: When a dialog has no default button, pressing
  12.         Enter ends it anyway and all buttons are selected.
  13. Solution:   Don't end a dialog when there is no default button.  Don't select
  14.         all button when there is no default. (Vince Negri)
  15. Files:        src/gui_w32.c
  16.  
  17.  
  18. *** ../vim61.146/src/gui_w32.c    Sun Jun  9 20:34:00 2002
  19. --- src/gui_w32.c    Sat Aug  3 21:50:26 2002
  20. ***************
  21. *** 2282,2288 ****
  22.        * accept the default value, some reason this is what we get.
  23.        */
  24.       if (button == IDOK)
  25. !         EndDialog(hwnd, dialog_default_button);
  26.       else
  27.           EndDialog(hwnd, button - IDCANCEL);
  28.       return TRUE;
  29. --- 2282,2291 ----
  30.        * accept the default value, some reason this is what we get.
  31.        */
  32.       if (button == IDOK)
  33. !     {
  34. !         if (dialog_default_button > IDCANCEL)
  35. !         EndDialog(hwnd, dialog_default_button);
  36. !     }
  37.       else
  38.           EndDialog(hwnd, button - IDCANCEL);
  39.       return TRUE;
  40. ***************
  41. *** 2422,2428 ****
  42.           numButtons++;
  43.       }
  44.       if (dfltbutton >= numButtons)
  45. !     dfltbutton = 0;
  46.   
  47.       /* Allocate array to hold the width of each button */
  48.       buttonWidths = (int *) lalloc(numButtons * sizeof(int), TRUE);
  49. --- 2425,2431 ----
  50.           numButtons++;
  51.       }
  52.       if (dfltbutton >= numButtons)
  53. !     dfltbutton = -1;
  54.   
  55.       /* Allocate array to hold the width of each button */
  56.       buttonWidths = (int *) lalloc(numButtons * sizeof(int), TRUE);
  57. ***************
  58. *** 2640,2646 ****
  59.       if (vertical)
  60.       {
  61.           p = add_dialog_element(p,
  62. !             ((i == dfltbutton || dfltbutton < 0)
  63.                   ? BS_DEFPUSHBUTTON : BS_PUSHBUTTON) | WS_TABSTOP,
  64.               PixelToDialogX(DLG_VERT_PADDING_X),
  65.               PixelToDialogY(buttonYpos /* TBK */
  66. --- 2643,2649 ----
  67.       if (vertical)
  68.       {
  69.           p = add_dialog_element(p,
  70. !             (i == dfltbutton
  71.                   ? BS_DEFPUSHBUTTON : BS_PUSHBUTTON) | WS_TABSTOP,
  72.               PixelToDialogX(DLG_VERT_PADDING_X),
  73.               PixelToDialogY(buttonYpos /* TBK */
  74. ***************
  75. *** 2652,2658 ****
  76.       else
  77.       {
  78.           p = add_dialog_element(p,
  79. !             ((i == dfltbutton || dfltbutton < 0)
  80.                   ? BS_DEFPUSHBUTTON : BS_PUSHBUTTON) | WS_TABSTOP,
  81.               PixelToDialogX(horizWidth + buttonPositions[i]),
  82.               PixelToDialogY(buttonYpos), /* TBK */
  83. --- 2655,2661 ----
  84.       else
  85.       {
  86.           p = add_dialog_element(p,
  87. !             (i == dfltbutton
  88.                   ? BS_DEFPUSHBUTTON : BS_PUSHBUTTON) | WS_TABSTOP,
  89.               PixelToDialogX(horizWidth + buttonPositions[i]),
  90.               PixelToDialogY(buttonYpos), /* TBK */
  91. *** ../vim61.146/src/version.c    Sat Aug  3 21:22:36 2002
  92. --- src/version.c    Sun Aug  4 20:54:08 2002
  93. ***************
  94. *** 608,609 ****
  95. --- 608,611 ----
  96.   {   /* Add new patch number below this line */
  97. + /**/
  98. +     147,
  99.   /**/
  100.  
  101. -- 
  102. From "know your smileys":
  103.  C=}>;*{)) Drunk, devilish chef with a toupee in an updraft,
  104.        a mustache, and a double chin
  105.  
  106.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  107. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  108. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  109.  \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///
  110.