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 / unreleased / patches / 6.0aw.007 < prev    next >
Encoding:
Internet Message Format  |  2001-09-17  |  1.4 KB

  1. To: vim-dev@vim.org
  2. Subject: Patch 6.0aw.007
  3. Fcc: outbox
  4. From: Bram Moolenaar <Bram@moolenaar.net>
  5. ------------
  6.  
  7. Patch 6.0aw.007
  8. Problem:    When 'foldlevelstart' is set in a vimrc file, it was not used for
  9.         the first file in the argument list. (Gary Johnson)
  10. Solution:   Set 'foldlevel' to 'foldlevelstart' when opening the first buffer.
  11. Files:        src/main.c
  12.  
  13.  
  14. *** ../vim-6.0aw/src/main.c    Sun Sep 16 22:21:05 2001
  15. --- src/main.c    Tue Sep 18 16:18:43 2001
  16. ***************
  17. *** 1604,1609 ****
  18. --- 1604,1614 ----
  19.           curbuf = curwin->w_buffer;
  20.           if (curbuf->b_ml.ml_mfp == NULL)
  21.           {
  22. + #ifdef FEAT_FOLDING
  23. +         /* Set 'foldlevel' to 'foldlevelstart' if it's not negative. */
  24. +         if (p_fdls >= 0)
  25. +             curwin->w_p_fdl = p_fdls;
  26. + #endif
  27.   #if defined(FEAT_GUI_DIALOG) || defined(FEAT_CON_DIALOG)
  28.           /* When getting the ATTENTION prompt here, use a dialog */
  29.           swap_exists_action = SEA_DIALOG;
  30.  
  31. -- 
  32.    GALAHAD turns back.  We see from his POV the lovely ZOOT standing by him
  33.    smiling enchantingly and a number of equally delectable GIRLIES draped
  34.    around in the seductively poulticed room.  They look at him smilingly and
  35.    wave.
  36.                  "Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
  37.  
  38.  ///  Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net  \\\
  39. (((   Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim   )))
  40.  \\\  Help me helping AIDS orphans in Uganda - http://iccf-holland.org  ///
  41.