@@ -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
475476is_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 *
27192721ex_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
1037610378set_pressedreturn (int val )
1037710379{
10378- ex_pressedreturn = val ;
10380+ ex_pressedreturn = val ;
1037910381}
0 commit comments