comparison src/normal.c @ 12646:b908a3682f6e v8.0.1201

patch 8.0.1201: "yL" is affected by 'scrolloff' commit https://github.com/vim/vim/commit/44cc4cf72fdd12cd9a779031d443aac4254d51ae Author: Bram Moolenaar <Bram@vim.org> Date: Sun Oct 15 22:13:37 2017 +0200 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.
author Christian Brabandt <cb@256bit.org>
date Sun, 15 Oct 2017 22:15:05 +0200
parents f62696bd1a9f
children e769c912fcd9
comparison
equal deleted inserted replaced
12645:8ae2050dcae9 12646:b908a3682f6e
5952 curwin->w_cursor.lnum = curwin->w_topline + n; 5952 curwin->w_cursor.lnum = curwin->w_topline + n;
5953 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count) 5953 if (curwin->w_cursor.lnum > curbuf->b_ml.ml_line_count)
5954 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count; 5954 curwin->w_cursor.lnum = curbuf->b_ml.ml_line_count;
5955 } 5955 }
5956 5956
5957 cursor_correct(); /* correct for 'so' */ 5957 /* Correct for 'so', except when an operator is pending. */
5958 if (cap->oap->op_type == OP_NOP)
5959 cursor_correct();
5958 beginline(BL_SOL | BL_FIX); 5960 beginline(BL_SOL | BL_FIX);
5959 } 5961 }
5960 5962
5961 /* 5963 /*
5962 * Cursor right commands. 5964 * Cursor right commands.