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.
diff --git a/src/normal.c b/src/normal.c
index d78a53b..fbeffe5 100644
--- a/src/normal.c
+++ b/src/normal.c
@@ -5954,7 +5954,9 @@
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);
}