To: vim-dev@vim.org Subject: Patch 6.1.097 Fcc: outbox From: Bram Moolenaar MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit ------------ Patch 6.1.097 (depends on 6.1.090) Problem: When 'scrolloff' is set to a huge value, CTRL-F at the end of the file scrolls one line. (Lubomir Host) Solution: Don't scroll when CTRL-F detects the end-of-file. Files: src/move.c *** ../vim61.096/src/move.c Sun Jun 9 14:47:19 2002 --- src/move.c Mon Jun 10 20:32:20 2002 *************** *** 2465,2471 **** * But make sure we scroll at least one line (happens with mix of long * wrapping lines and non-wrapping line). */ ! if (dir == FORWARD && check_top_offset()) { scroll_cursor_top(1, FALSE); if (curwin->w_topline <= old_topline --- 2465,2471 ---- * But make sure we scroll at least one line (happens with mix of long * wrapping lines and non-wrapping line). */ ! if (retval == OK && dir == FORWARD && check_top_offset()) { scroll_cursor_top(1, FALSE); if (curwin->w_topline <= old_topline *** ../vim61.096/src/version.c Tue Jun 18 20:08:28 2002 --- src/version.c Tue Jun 18 21:12:17 2002 *************** *** 608,609 **** --- 608,611 ---- { /* Add new patch number below this line */ + /**/ + 97, /**/ -- hundred-and-one symptoms of being an internet addict: 255. You work for a newspaper and your editor asks you to write an article about Internet addiction...in the "first person." /// Bram Moolenaar -- Bram@moolenaar.net -- 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 ///