1
0
forked from aniani/vim

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; int error = FALSE;
varnumber_T flag = tv_get_number_chk(&argvars[0], &error); varnumber_T flag = tv_get_number_chk(&argvars[0], &error);
if (error) if (error)
return; return;
flag_list_all = flag ? TRUE : FALSE; flag_list_all = flag ? TRUE : FALSE;

View File

@@ -3839,8 +3839,7 @@ ins_insert(int replaceState)
#ifdef FEAT_EVAL #ifdef FEAT_EVAL
set_vim_var_string(VV_INSERTMODE, set_vim_var_string(VV_INSERTMODE,
(char_u *)((State & REPLACE_FLAG) ? "i" (char_u *)((State & REPLACE_FLAG) ? "i"
: replaceState == MODE_VREPLACE ? "v" : replaceState == MODE_VREPLACE ? "v" : "r"), 1);
: "r"), 1);
#endif #endif
ins_apply_autocmds(EVENT_INSERTCHANGE); ins_apply_autocmds(EVENT_INSERTCHANGE);
if (State & REPLACE_FLAG) 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". * Find window specified by "vp" in tabpage "tp".
* Returns current window if "vp" is number zero.
* Returns NULL if not found.
*/ */
win_T * win_T *
find_win_by_nr( 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 * No other characters are accepted, the message is repeated until a valid
* reply is entered or CTRL-C is hit. * reply is entered or CTRL-C is hit.
* If direct is TRUE, don't use vgetc() but ui_inchar(), don't get characters * 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[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
4928,
/**/ /**/
4927, 4927,
/**/ /**/

View File

@@ -1041,7 +1041,7 @@ compile_all_expr_in_str(char_u *str, int evalstr, cctx_T *cctx)
// Skip the opening {. // Skip the opening {.
block_start = skipwhite(p + 1); block_start = skipwhite(p + 1);
block_end = block_start; 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; return FAIL;
block_end = skipwhite(block_end); block_end = skipwhite(block_end);
// The block must be closed by a }. // The block must be closed by a }.