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

@@ -2339,6 +2339,7 @@ f_digraph_getlist(typval_T *argvars, typval_T *rettv)
{
int error = FALSE;
varnumber_T flag = tv_get_number_chk(&argvars[0], &error);
if (error)
return;
flag_list_all = flag ? TRUE : FALSE;

View File

@@ -3839,8 +3839,7 @@ ins_insert(int replaceState)
#ifdef FEAT_EVAL
set_vim_var_string(VV_INSERTMODE,
(char_u *)((State & REPLACE_FLAG) ? "i"
: replaceState == MODE_VREPLACE ? "v"
: "r"), 1);
: replaceState == MODE_VREPLACE ? "v" : "r"), 1);
#endif
ins_apply_autocmds(EVENT_INSERTCHANGE);
if (State & REPLACE_FLAG)

View File

@@ -155,6 +155,8 @@ win_findbuf(typval_T *argvars, list_T *list)
/*
* Find window specified by "vp" in tabpage "tp".
* Returns current window if "vp" is number zero.
* Returns NULL if not found.
*/
win_T *
find_win_by_nr(

View File

@@ -575,7 +575,8 @@ check_status(buf_T *buf)
}
/*
* Ask for a reply from the user, a 'y' or a 'n'.
* Ask for a reply from the user, a 'y' or a 'n', with prompt "str" (which
* should have been translated already).
* No other characters are accepted, the message is repeated until a valid
* reply is entered or CTRL-C is hit.
* If direct is TRUE, don't use vgetc() but ui_inchar(), don't get characters

View File

@@ -746,6 +746,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
4928,
/**/
4927,
/**/

View File

@@ -1041,7 +1041,7 @@ compile_all_expr_in_str(char_u *str, int evalstr, cctx_T *cctx)
// Skip the opening {.
block_start = skipwhite(p + 1);
block_end = block_start;
if (*block_start != NUL &&skip_expr(&block_end, NULL) == FAIL)
if (*block_start != NUL && skip_expr(&block_end, NULL) == FAIL)
return FAIL;
block_end = skipwhite(block_end);
// The block must be closed by a }.