Skip to content

Commit e89aef3

Browse files
yegappanchrisbra
authored andcommitted
patch 9.1.1390: style: more wrong indentation
Problem: style: more wrong indentation Solution: reformat a few more places (Yegappan Lakshmanan) closes: #17309 Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
1 parent 08db2f4 commit e89aef3

29 files changed

Lines changed: 117 additions & 113 deletions

src/cmdexpand.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4386,10 +4386,10 @@ f_getcompletion(typval_T *argvars, typval_T *rettv)
43864386
}
43874387

43884388
if (cmdline_fuzzy_completion_supported(&xpc))
4389-
// when fuzzy matching, don't modify the search string
4390-
pat = vim_strsave(xpc.xp_pattern);
4389+
// when fuzzy matching, don't modify the search string
4390+
pat = vim_strsave(xpc.xp_pattern);
43914391
else
4392-
pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context);
4392+
pat = addstar(xpc.xp_pattern, xpc.xp_pattern_len, xpc.xp_context);
43934393

43944394
if (rettv_list_alloc(rettv) == OK && pat != NULL)
43954395
{

src/debugger.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,9 @@ do_showbacktrace(char_u *cmd)
395395
}
396396

397397
if (SOURCING_LNUM != 0)
398-
smsg(_("line %ld: %s"), (long)SOURCING_LNUM, cmd);
398+
smsg(_("line %ld: %s"), (long)SOURCING_LNUM, cmd);
399399
else
400-
smsg(_("cmd: %s"), cmd);
400+
smsg(_("cmd: %s"), cmd);
401401
}
402402

403403
/*

src/diff.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ diff_write_buffer(buf_T *buf, diffin_T *din, linenr_T start, linenr_T end)
781781
char_u *ptr;
782782

783783
if (end < 0)
784-
end = buf->b_ml.ml_line_count;
784+
end = buf->b_ml.ml_line_count;
785785

786786
if (buf->b_ml.ml_flags & ML_EMPTY)
787787
{
@@ -2395,10 +2395,10 @@ diff_check_with_linestatus(win_T *wp, linenr_T lnum, int *linestatus)
23952395
if (lnum >= wp->w_topline && lnum < wp->w_botline
23962396
&& !dp->is_linematched && diff_linematch(dp)
23972397
&& diff_check_sanity(curtab, dp))
2398-
run_linematch_algorithm(dp);
2398+
run_linematch_algorithm(dp);
23992399

24002400
if (dp->is_linematched)
2401-
return linematched_filler_lines(dp, idx, lnum, linestatus);
2401+
return linematched_filler_lines(dp, idx, lnum, linestatus);
24022402

24032403
if (lnum < dp->df_lnum[idx] + dp->df_count[idx])
24042404
{

src/dosinst.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2695,8 +2695,8 @@ request_choice(void)
26952695

26962696
printf("\n\nInstall will do for you:\n");
26972697
for (i = 0; i < choice_count; ++i)
2698-
if (choices[i].active)
2699-
printf("%2d %s\n", i + 1, choices[i].text);
2698+
if (choices[i].active)
2699+
printf("%2d %s\n", i + 1, choices[i].text);
27002700
printf("To change an item, enter its number\n\n");
27012701
printf("Enter item number, h (help), d (do it) or q (quit): ");
27022702
}

src/evalwindow.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ win_id2wp_tp(int id, tabpage_T **tpp)
106106
}
107107
#ifdef FEAT_PROP_POPUP
108108
// popup windows are in separate lists
109-
FOR_ALL_TABPAGES(tp)
110-
FOR_ALL_POPUPWINS_IN_TAB(tp, wp)
109+
FOR_ALL_TABPAGES(tp)
110+
FOR_ALL_POPUPWINS_IN_TAB(tp, wp)
111111
if (wp->w_id == id)
112112
{
113113
if (tpp != NULL)

src/ex_docmd.c

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -467,36 +467,38 @@ restore_dbg_stuff(struct dbg_stuff *dsp)
467467

468468
/*
469469
* Check if ffname differs from fnum.
470-
* fnum is a buffer number. 0 == current buffer, 1-or-more must be a valid buffer ID.
470+
* fnum is a buffer number. 0 == current buffer, 1-or-more must be a valid
471+
* buffer ID.
471472
* ffname is a full path to where a buffer lives on-disk or would live on-disk.
472473
*
473474
*/
474475
static int
475476
is_other_file(int fnum, char_u *ffname)
476477
{
477-
if (fnum != 0)
478-
{
479-
if (fnum == curbuf->b_fnum)
480-
return FALSE;
478+
if (fnum != 0)
479+
{
480+
if (fnum == curbuf->b_fnum)
481+
return FALSE;
481482

482-
return TRUE;
483-
}
483+
return TRUE;
484+
}
484485

485-
if (ffname == NULL)
486-
return TRUE;
486+
if (ffname == NULL)
487+
return TRUE;
487488

488-
if (*ffname == NUL)
489-
return FALSE;
489+
if (*ffname == NUL)
490+
return FALSE;
490491

491-
// TODO: Need a reliable way to know whether a buffer is meant to live on-disk
492-
// !curbuf->b_dev_valid is not always available (example: missing on Windows)
493-
if (curbuf->b_sfname != NULL
494-
&& *curbuf->b_sfname != NUL)
495-
// This occurs with unsaved buffers. In which case `ffname`
496-
// actually corresponds to curbuf->b_sfname
497-
return fnamecmp(ffname, curbuf->b_sfname) != 0;
492+
// TODO: Need a reliable way to know whether a buffer is meant to live
493+
// on-disk !curbuf->b_dev_valid is not always available (example: missing
494+
// on Windows)
495+
if (curbuf->b_sfname != NULL
496+
&& *curbuf->b_sfname != NUL)
497+
// This occurs with unsaved buffers. In which case `ffname` actually
498+
// corresponds to curbuf->b_sfname
499+
return fnamecmp(ffname, curbuf->b_sfname) != 0;
498500

499-
return otherfile(ffname);
501+
return otherfile(ffname);
500502
}
501503

502504
/*
@@ -2715,7 +2717,7 @@ static char ex_error_buf[MSG_BUF_LEN];
27152717
* Uses a static buffer, only the last error will be kept.
27162718
* "msg" will be translated, caller should use N_().
27172719
*/
2718-
char *
2720+
char *
27192721
ex_errmsg(char *msg, char_u *arg)
27202722
{
27212723
vim_snprintf(ex_error_buf, MSG_BUF_LEN, _(msg), arg);
@@ -9330,7 +9332,7 @@ ex_stopinsert(exarg_T *eap UNUSED)
93309332
// when called from remote_expr in insert mode, make sure insert mode is
93319333
// ended by adding K_NOP to the typeahead buffer
93329334
if (vgetc_busy)
9333-
ins_char_typebuf(K_NOP, 0);
9335+
ins_char_typebuf(K_NOP, 0);
93349336
#endif
93359337
clearmode();
93369338
}
@@ -10375,5 +10377,5 @@ get_pressedreturn(void)
1037510377
void
1037610378
set_pressedreturn(int val)
1037710379
{
10378-
ex_pressedreturn = val;
10380+
ex_pressedreturn = val;
1037910381
}

src/ex_getln.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ empty_pattern_magic(char_u *p, size_t len, magic_T magic_val)
103103
// remove trailing \v and the like
104104
while (len >= 2 && p[len - 2] == '\\'
105105
&& vim_strchr((char_u *)"mMvVcCZ", p[len - 1]) != NULL)
106-
len -= 2;
106+
len -= 2;
107107

108108
// true, if the pattern is empty, or the pattern ends with \| and magic is
109109
// set (or it ends with '|' and very magic is set)

src/findfile.c

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -162,19 +162,19 @@ typedef struct ff_visited_list_hdr
162162
*/
163163
typedef struct ff_search_ctx_T
164164
{
165-
ff_stack_T *ffsc_stack_ptr;
166-
ff_visited_list_hdr_T *ffsc_visited_list;
167-
ff_visited_list_hdr_T *ffsc_dir_visited_list;
168-
ff_visited_list_hdr_T *ffsc_visited_lists_list;
169-
ff_visited_list_hdr_T *ffsc_dir_visited_lists_list;
170-
string_T ffsc_file_to_search;
171-
string_T ffsc_start_dir;
172-
string_T ffsc_fix_path;
173-
string_T ffsc_wc_path;
174-
int ffsc_level;
175-
string_T *ffsc_stopdirs_v;
176-
int ffsc_find_what;
177-
int ffsc_tagfile;
165+
ff_stack_T *ffsc_stack_ptr;
166+
ff_visited_list_hdr_T *ffsc_visited_list;
167+
ff_visited_list_hdr_T *ffsc_dir_visited_list;
168+
ff_visited_list_hdr_T *ffsc_visited_lists_list;
169+
ff_visited_list_hdr_T *ffsc_dir_visited_lists_list;
170+
string_T ffsc_file_to_search;
171+
string_T ffsc_start_dir;
172+
string_T ffsc_fix_path;
173+
string_T ffsc_wc_path;
174+
int ffsc_level;
175+
string_T *ffsc_stopdirs_v;
176+
int ffsc_find_what;
177+
int ffsc_tagfile;
178178
} ff_search_ctx_T;
179179

180180
// locally needed functions

src/getchar.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2604,7 +2604,7 @@ parse_queued_messages(void)
26042604
// If memory allocation fails during startup we'll exit but curbuf or
26052605
// curwin could be NULL.
26062606
if (curbuf == NULL || curwin == NULL)
2607-
return;
2607+
return;
26082608

26092609
old_curbuf_fnum = curbuf->b_fnum;
26102610
old_curwin_id = curwin->w_id;

src/gui_motif.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1377,7 +1377,7 @@ gui_motif_update_mousemodel(vimmenu_T *menu)
13771377

13781378
// When GUI hasn't started the menus have not been created.
13791379
if (!gui.in_use)
1380-
return;
1380+
return;
13811381

13821382
while (menu)
13831383
{

0 commit comments

Comments
 (0)