To:
[email protected]
Subject: Patch 6.1b.022
Fcc: outbox
From: Bram Moolenaar <
[email protected]>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
------------
Patch 6.1b.022
Problem: With lots of folds "j" does not obey 'scrolloff' properly.
(Srinath Avadhanula)
Solution: Go to end of the fold before counting context lines.
Files: src/move.c
*** ../vim61b.021/src/move.c Thu Feb 28 21:56:00 2002
--- src/move.c Sat Mar 16 16:41:26 2002
***************
*** 293,298 ****
--- 293,302 ----
* window lines below the cursor. If not, need to scroll. */
n = curwin->w_empty_rows;
loff.lnum = curwin->w_cursor.lnum;
+ #ifdef FEAT_FOLDING
+ /* In a fold go to its last line. */
+ (void)hasFolding(loff.lnum, NULL, &loff.lnum);
+ #endif
#ifdef FEAT_DIFF
loff.fill = 0;
n += curwin->w_filler_rows;
*** ../vim61b.021/src/version.c Sat Mar 16 16:18:25 2002
--- src/version.c Sat Mar 16 16:43:33 2002
***************
*** 608,609 ****
--- 608,611 ----
{ /* Add new patch number below this line */
+ /**/
+ 22,
/**/
--
FATHER: You killed eight wedding guests in all!
LAUNCELOT: Er, Well ... the thing is ... I thought your son was a lady.
FATHER: I can understand that.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar --
[email protected] --
http://www.moolenaar.net \\\
/// Creator of Vim --
http://vim.sf.net --
ftp://ftp.vim.org/pub/vim \\\
\\\ Project leader for A-A-P --
http://www.a-a-p.org ///
\\\ Help me helping AIDS orphans in Uganda -
http://iccf-holland.org ///