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.039 < prev    next >
Encoding:
Internet Message Format  |  2002-04-28  |  1.7 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.1.039
  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.039
  11. Problem:    When folds are defined and the file is changed outside of Vim,
  12.         reloading the file doesn't update the folds. (Anders
  13.         Schack-Nielsen)
  14. Solution:   Recompute the folds after reloading the file.
  15. Files:        src/fileio.c
  16.  
  17.  
  18. *** ../vim61.038/src/fileio.c    Tue Apr 23 22:11:59 2002
  19. --- src/fileio.c    Tue Apr 23 20:49:02 2002
  20. ***************
  21. *** 5270,5275 ****
  22. --- 5270,5286 ----
  23.   #ifdef FEAT_AUTOCMD
  24.           keep_filetype = FALSE;
  25.   #endif
  26. + #ifdef FEAT_FOLDING
  27. +         {
  28. +         win_T *wp;
  29. +         /* Update folds unless they are defined manually. */
  30. +         FOR_ALL_WINDOWS(wp)
  31. +             if (wp->w_buffer == curwin->w_buffer
  32. +                 && !foldmethodIsManual(wp))
  33. +             foldUpdateAll(wp);
  34. +         }
  35. + #endif
  36.           /* If the mode didn't change and 'readonly' was set, keep the old
  37.            * value; the user probably used the ":view" command.  But don't
  38.            * reset it, might have had a read error. */
  39. *** ../vim61.038/src/version.c    Sun Apr 28 22:20:43 2002
  40. --- src/version.c    Mon Apr 29 21:52:19 2002
  41. ***************
  42. *** 608,609 ****
  43. --- 608,611 ----
  44.   {   /* Add new patch number below this line */
  45. + /**/
  46. +     39,
  47.   /**/
  48.  
  49. -- 
  50. There can't be a crisis today, my schedule is already full. 
  51.  
  52.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  53. ///   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   \\\
  54. \\\           Project leader for A-A-P -- http://www.a-a-p.org           ///
  55.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  56.