To: vim-dev@vim.org Subject: Patch 6.0aw.009 Fcc: outbox From: Bram Moolenaar ------------ Patch 6.0aw.009 Problem: Using CTRL-B when there are closed folds often results in the number of lines in the first fold to be wrong. (Jean-Laurent Huynh) Solution: Correct the topline to be at the start of the closed fold. Files: src/move.c *** ../vim-6.0aw/src/move.c Sun Sep 16 22:21:07 2001 --- src/move.c Tue Sep 18 20:05:50 2001 *************** *** 2384,2389 **** --- 2384,2393 ---- #ifdef FEAT_DIFF botline_topline(&loff); #endif + #ifdef FEAT_FOLDING + /* We're at the wrong end of a fold now. */ + (void)hasFolding(loff.lnum, &loff.lnum, NULL); + #endif /* Always scroll at least one line. Avoid getting stuck on * very long lines. */ -- "Intelligence has much less practical application than you'd think." -- Scott Adams, Dilbert. /// Bram Moolenaar -- Bram@moolenaar.net -- http://www.moolenaar.net \\\ ((( Creator of Vim -- http://vim.sf.net -- ftp://ftp.vim.org/pub/vim ))) \\\ Help me helping AIDS orphans in Uganda - http://iccf-holland.org ///