To: vim-dev@vim.org Subject: Patch 6.1.468 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.468 Problem: ":mksession" also stores folds for buffers which will not be restored. Solution: Only store folds for a buffer with 'buftype' empty and help files. Files: src/ex_docmd.c *** ../vim61.467/src/ex_docmd.c Tue Apr 1 22:08:53 2003 --- src/ex_docmd.c Tue Apr 15 22:08:06 2003 *************** *** 8410,8418 **** #ifdef FEAT_FOLDING /* ! * Folds. */ ! if (*flagp & SSOP_FOLDS) { if (put_folds(fd, wp) == FAIL) return FAIL; --- 8410,8420 ---- #ifdef FEAT_FOLDING /* ! * Save Folds when 'buftype' is empty and for help files. */ ! if ((*flagp & SSOP_FOLDS) ! && wp->w_buffer->b_ffname != NULL ! && (*wp->w_buffer->b_p_bt == NUL || wp->w_buffer->b_help)) { if (put_folds(fd, wp) == FAIL) return FAIL; *** ../vim61.467/src/version.c Wed Apr 16 20:56:52 2003 --- src/version.c Wed Apr 16 21:01:35 2003 *************** *** 613,614 **** --- 613,616 ---- { /* Add new patch number below this line */ + /**/ + 468, /**/ -- Female engineers become irresistible at the age of consent and remain that way until about thirty minutes after their clinical death. Longer if it's a warm day. (Scott Adams - The Dilbert principle) /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\ /// Creator of Vim - Vi IMproved -- http://www.Vim.org \\\ \\\ Project leader for A-A-P -- http://www.A-A-P.org /// \\\ Help AIDS victims, buy at Amazon -- http://ICCF.nl/click1.html ///