mirror of
https://github.com/vim/vim.git
synced 2025-10-23 08:44:20 -04:00
patch 9.0.1309: scrolling two lines with even line count and 'scrolloff' set
Problem: Scrolling two lines with even line count and 'scrolloff' set. Solution: Adjust how the topline is computed. (closes #10545)
This commit is contained in:
@@ -2712,7 +2712,7 @@ nv_zet(cmdarg_T *cap)
|
||||
case '.': beginline(BL_WHITE | BL_FIX);
|
||||
// FALLTHROUGH
|
||||
|
||||
case 'z': scroll_cursor_halfway(TRUE);
|
||||
case 'z': scroll_cursor_halfway(TRUE, FALSE);
|
||||
redraw_later(UPD_VALID);
|
||||
set_fraction(curwin);
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user