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.2.320 < prev    next >
Encoding:
Internet Message Format  |  2004-03-05  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.2.320
  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.2.320
  11. Problem:    Win32: Adding and removing the menubar resizes the Vim window.
  12.         (Jonathon Merz)
  13. Solution:   Don't let a resize event change 'lines' unexpectedly.
  14. Files:        src/gui.c
  15.  
  16.  
  17. *** ../vim-6.2.319/src/gui.c    Wed Feb 25 13:13:26 2004
  18. --- src/gui.c    Fri Mar  5 22:42:42 2004
  19. ***************
  20. *** 3156,3162 ****
  21. --- 3156,3166 ----
  22.   #ifdef FEAT_MENU
  23.       if (gui.menu_is_active != prev_menu_is_active)
  24.       {
  25. +         /* We don't want a resize event change "Rows" here, save and
  26. +          * restore it.  Resizing is handled below. */
  27. +         i = Rows;
  28.           gui_mch_enable_menu(gui.menu_is_active);
  29. +         Rows = i;
  30.           prev_menu_is_active = gui.menu_is_active;
  31.           need_set_size = TRUE;
  32.           if (gui.menu_is_active)
  33. ***************
  34. *** 3192,3199 ****
  35.       }
  36.   #endif
  37.       if (need_set_size)
  38. !         /* Adjust the size of the window to avoid that part of our window
  39. !          * is off-screen and a scrollbar can't be used, for example. */
  40.           gui_set_shellsize(FALSE, fix_size);
  41.       }
  42.   }
  43. --- 3196,3204 ----
  44.       }
  45.   #endif
  46.       if (need_set_size)
  47. !         /* Adjust the size of the window to make the text area keep the
  48. !          * same size and to avoid that part of our window is off-screen
  49. !          * and a scrollbar can't be used, for example. */
  50.           gui_set_shellsize(FALSE, fix_size);
  51.       }
  52.   }
  53. *** ../vim-6.2.319/src/version.c    Sat Mar  6 21:04:29 2004
  54. --- src/version.c    Sat Mar  6 21:05:52 2004
  55. ***************
  56. *** 639,640 ****
  57. --- 639,642 ----
  58.   {   /* Add new patch number below this line */
  59. + /**/
  60. +     320,
  61.   /**/
  62.  
  63. -- 
  64. A special cleaning ordinance bans housewives from hiding dirt and dust under a
  65. rug in a dwelling.
  66.         [real standing law in Pennsylvania, United States of America]
  67.  
  68.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  69. ///        Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  70. \\\              Project leader for A-A-P -- http://www.A-A-P.org        ///
  71.  \\\  Buy at Amazon and help AIDS victims -- http://ICCF.nl/click1.html ///
  72.