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.0 / 7.0.037 < prev    next >
Encoding:
Internet Message Format  |  2006-07-10  |  1.8 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.0.037
  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.0.037
  11. Problem:    Crash when resizing the GUI window vertically when there is a line
  12.         that doesn't fit.
  13. Solution:   Don't redraw while the screen data is invalid.
  14. Files:        src/screen.c
  15.  
  16.  
  17. *** ../vim-7.0.036/src/screen.c    Tue Jul 11 22:36:19 2006
  18. --- src/screen.c    Tue Jul 11 21:33:53 2006
  19. ***************
  20. *** 7129,7134 ****
  21. --- 7129,7140 ----
  22.       return;
  23.       entered = TRUE;
  24.   
  25. +     /*
  26. +      * Note that the window sizes are updated before reallocating the arrays,
  27. +      * thus we must not redraw here!
  28. +      */
  29. +     ++RedrawingDisabled;
  30.       win_new_shellsize();    /* fit the windows in the new sized shell */
  31.   
  32.       comp_col();        /* recompute columns for shown command and ruler */
  33. ***************
  34. *** 7363,7368 ****
  35. --- 7369,7375 ----
  36.   #endif
  37.   
  38.       entered = FALSE;
  39. +     --RedrawingDisabled;
  40.   
  41.   #ifdef FEAT_AUTOCMD
  42.       if (starting == 0)
  43. *** ../vim-7.0.036/src/version.c    Tue Jul 11 22:36:19 2006
  44. --- src/version.c    Tue Jul 11 22:38:39 2006
  45. ***************
  46. *** 668,669 ****
  47. --- 668,671 ----
  48.   {   /* Add new patch number below this line */
  49. + /**/
  50. +     37,
  51.   /**/
  52.  
  53. -- 
  54. For society, it's probably a good thing that engineers value function over
  55. appearance.  For example, you wouldn't want engineers to build nuclear power
  56. plants that only _look_ like they would keep all the radiation inside.
  57.                 (Scott Adams - The Dilbert principle)
  58.  
  59.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  60. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  61. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  62.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  63.