summaryrefslogtreecommitdiffstats
path: root/src/move.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/move.c')
-rw-r--r--src/move.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/move.c b/src/move.c
index 5e31e71336..58bd97fe04 100644
--- a/src/move.c
+++ b/src/move.c
@@ -185,7 +185,7 @@ update_topline(void)
#endif
int check_topline = FALSE;
int check_botline = FALSE;
- long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
+ long *so_ptr = curwin->w_p_so >= 0 ? &curwin->w_p_so : &p_so;
int save_so = *so_ptr;
// If there is no valid screen and when the window height is zero just use
@@ -435,7 +435,7 @@ check_top_offset(void)
{
lineoff_T loff;
int n;
- long so = get_scrolloff_value();
+ long so = get_scrolloff_value();
if (curwin->w_cursor.lnum < curwin->w_topline + so
#ifdef FEAT_FOLDING
@@ -951,8 +951,8 @@ curs_columns(
colnr_T startcol;
colnr_T endcol;
colnr_T prev_skipcol;
- long so = get_scrolloff_value();
- long siso = get_sidescrolloff_value();
+ long so = get_scrolloff_value();
+ long siso = get_sidescrolloff_value();
/*
* First make sure that w_topline is valid (after moving the cursor).
@@ -1976,7 +1976,7 @@ scroll_cursor_bot(int min_scroll, int set_topbot)
linenr_T old_valid = curwin->w_valid;
int old_empty_rows = curwin->w_empty_rows;
linenr_T cln; // Cursor Line Number
- long so = get_scrolloff_value();
+ long so = get_scrolloff_value();
cln = curwin->w_cursor.lnum;
if (set_topbot)
@@ -2270,7 +2270,7 @@ cursor_correct(void)
int above_wanted, below_wanted;
linenr_T cln; // Cursor Line Number
int max_off;
- long so = get_scrolloff_value();
+ long so = get_scrolloff_value();
/*
* How many lines we would like to have above/below the cursor depends on
@@ -2390,7 +2390,7 @@ onepage(int dir, long count)
int retval = OK;
lineoff_T loff;
linenr_T old_topline = curwin->w_topline;
- long so = get_scrolloff_value();
+ long so = get_scrolloff_value();
if (curbuf->b_ml.ml_line_count == 1) // nothing to do
{