forked from aniani/vim
patch 7.4.961
Problem: Test107 fails in some circunstances. Solution: When using "zt", "zb" and "z=" recompute the fraction.
This commit is contained in:
@@ -4880,6 +4880,7 @@ dozet:
|
||||
|
||||
case 't': scroll_cursor_top(0, TRUE);
|
||||
redraw_later(VALID);
|
||||
set_fraction(curwin);
|
||||
break;
|
||||
|
||||
/* "z." and "zz": put cursor in middle of screen */
|
||||
@@ -4888,6 +4889,7 @@ dozet:
|
||||
|
||||
case 'z': scroll_cursor_halfway(TRUE);
|
||||
redraw_later(VALID);
|
||||
set_fraction(curwin);
|
||||
break;
|
||||
|
||||
/* "z^", "z-" and "zb": put cursor at bottom of screen */
|
||||
@@ -4910,6 +4912,7 @@ dozet:
|
||||
|
||||
case 'b': scroll_cursor_bot(0, TRUE);
|
||||
redraw_later(VALID);
|
||||
set_fraction(curwin);
|
||||
break;
|
||||
|
||||
/* "zH" - scroll screen right half-page */
|
||||
|
||||
Reference in New Issue
Block a user