To: vim-dev@vim.org Subject: Patch 6.1.262 Fcc: outbox From: Bram Moolenaar Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.262 Problem: When jumping over folds with "z[", "zj" and "zk" the previous position is not remembered. (Hari Krishna Dara) Solution: Set the previous context mark before jumping. Files: src/fold.c *** ../vim61.261/src/fold.c Tue Oct 1 20:20:25 2002 --- src/fold.c Sun Nov 17 20:59:54 2002 *************** *** 962,967 **** --- 962,969 ---- } if (lnum_found != curwin->w_cursor.lnum) { + if (retval == FAIL) + setpcmark(); curwin->w_cursor.lnum = lnum_found; curwin->w_cursor.col = 0; retval = OK; *** ../vim61.261/src/version.c Tue Nov 19 12:02:53 2002 --- src/version.c Tue Nov 19 12:04:07 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 262, /**/ -- hundred-and-one symptoms of being an internet addict: 90. Instead of calling you to dinner, your spouse sends e-mail. /// 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 /// \\\ Lord Of The Rings helps Uganda - http://iccf-holland.org/lotr.html ///