0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4928: various white space and cosmetic mistakes

Problem:    Various white space and cosmetic mistakes.
Solution:   Change spaces to tabs, improve comments.
This commit is contained in:
Bram Moolenaar
2022-05-09 20:09:23 +01:00
parent 921bde8880
commit 6ed545e797
49 changed files with 164 additions and 159 deletions

View File

@@ -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
{