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.2 / 7.2.207 < prev    next >
Encoding:
Internet Message Format  |  2009-06-15  |  2.2 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 7.2.207
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. Mime-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. ------------
  9.  
  10. Patch 7.2.207
  11. Problem:    Using freed memory with ":redrawstatus" when it works recursively.
  12. Solution:   Prevent recursively updating the status line. (partly by Dominique
  13.         Pelle)
  14. Files:        src/screen.c
  15.  
  16.  
  17. *** ../vim-7.2.206/src/screen.c    2009-06-16 16:01:34.000000000 +0200
  18. --- src/screen.c    2009-06-16 17:04:53.000000000 +0200
  19. ***************
  20. *** 5743,5748 ****
  21. --- 5743,5755 ----
  22.       int        fillchar;
  23.       int        attr;
  24.       int        this_ru_col;
  25. +     static int  busy = FALSE;
  26. +     /* It's possible to get here recursively when 'statusline' (indirectly)
  27. +      * invokes ":redrawstatus".  Simply ignore the call then. */
  28. +     if (busy)
  29. +     return;
  30. +     busy = TRUE;
  31.   
  32.       wp->w_redr_status = FALSE;
  33.       if (wp->w_status_height == 0)
  34. ***************
  35. *** 5881,5886 ****
  36. --- 5888,5894 ----
  37.                                       attr);
  38.       }
  39.   #endif
  40. +     busy = FALSE;
  41.   }
  42.   
  43.   #ifdef FEAT_STL_OPT
  44. *** ../vim-7.2.206/src/version.c    2009-06-16 16:57:53.000000000 +0200
  45. --- src/version.c    2009-06-16 17:21:56.000000000 +0200
  46. ***************
  47. *** 678,679 ****
  48. --- 678,681 ----
  49.   {   /* Add new patch number below this line */
  50. + /**/
  51. +     207,
  52.   /**/
  53.  
  54. -- 
  55. In many of the more relaxed civilizations on the Outer Eastern Rim of the
  56. Galaxy, "The Hitchhiker's Guide to the Galaxy" has already supplanted the
  57. great "Encyclopedia Galactica" as the standard repository of all knowledge
  58. and wisdom, for though it has many omissions and contains much that is
  59. apocryphal, or at least wildly inaccurate, it scores over the older, more
  60. pedestrian work in two important respects.
  61. First, it is slightly cheaper; and second, it has the words "DON'T PANIC"
  62. inscribed in large friendly letters on its cover.
  63.         -- Douglas Adams, "The Hitchhiker's Guide to the Galaxy"
  64.  
  65.  /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
  66. ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
  67. \\\        download, build and distribute -- http://www.A-A-P.org        ///
  68.  \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///
  69.