4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: CTRL-Y in a diff'ed window may move the cursor outside of the
13 Solution: Limit the number of filler lines to the height of the window.
14 Don't reset filler lines to zero for an empty buffer.
18 *** ../vim-7.2.276/src/move.c 2009-05-15 21:31:11.000000000 +0200
19 --- src/move.c 2009-11-03 14:39:55.000000000 +0100
22 if (curwin->w_topline != 1)
23 redraw_later(NOT_VALID);
24 curwin->w_topline = 1;
26 - curwin->w_topfill = 0;
28 curwin->w_botline = 2;
29 curwin->w_valid |= VALID_BOTLINE|VALID_BOTLINE_AP;
30 #ifdef FEAT_SCROLLBIND
34 while (line_count-- > 0)
37 ! if (curwin->w_topfill < diff_check(curwin, curwin->w_topline))
42 while (line_count-- > 0)
45 ! if (curwin->w_topfill < diff_check(curwin, curwin->w_topline)
46 ! && curwin->w_topfill < curwin->w_height - 1)
50 *** ../vim-7.2.276/src/version.c 2009-11-03 16:03:59.000000000 +0100
51 --- src/version.c 2009-11-03 16:22:04.000000000 +0100
55 { /* Add new patch number below this line */
61 SIGFUN -- signature too funny (core dumped)
63 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
64 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
65 \\\ download, build and distribute -- http://www.A-A-P.org ///
66 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///