0
0
mirror of https://github.com/vim/vim.git synced 2025-09-26 04:04:07 -04:00

patch 8.0.1201: "yL" is affected by 'scrolloff'

Problem:    "yL" is affected by 'scrolloff'. (Eli the Bearded)
Solution:   Don't use 'scrolloff' when an operator is pending.
This commit is contained in:
Bram Moolenaar
2017-10-15 22:13:37 +02:00
parent 67418d97b4
commit 44cc4cf72f
3 changed files with 13 additions and 3 deletions

View File

@@ -5954,7 +5954,9 @@ 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);
}