mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 05:28:33 +00:00
vim-patch:8.0.1201: "yL" is affected by 'scrolloff' (#8997)
Problem: "yL" is affected by 'scrolloff'. (Eli the Bearded)
Solution: Don't use 'scrolloff' when an operator is pending.
44cc4cf72f
This commit is contained in:

committed by
Justin M. Keyes

parent
1bc44a805a
commit
c03e8307d2
@@ -5042,7 +5042,10 @@ static void nv_scroll(cmdarg_T *cap)
|
||||
curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
|
||||
}
|
||||
|
||||
cursor_correct(); /* correct for 'so' */
|
||||
// Correct for 'so', except when an operator is pending.
|
||||
if (cap->oap->op_type == OP_NOP) {
|
||||
cursor_correct();
|
||||
}
|
||||
beginline(BL_SOL | BL_FIX);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user