mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
refactor: saner options for uncrustify (#16204)
* sp_enum_after_assign = force * sp_brace_typedef = force * nl_do_brace = remove * sp_do_brace_open = force * sp_brace_close_while = force * sp_before_semi = remove * sp_before_semi_for = remove * sp_before_semi_for_empty = remove * sp_between_semi_for_empty = remove * sp_after_semi_for_empty = remove * sp_before_square = remove * sp_before_squares = remove * sp_inside_square = remove * sp_inside_fparens = remove * sp_inside_fparen = remove * sp_inside_tparen = remove * sp_after_tparen_close = remove * sp_return_paren = force * pos_bool = lead * sp_pp_concat = remove * sp_pp_stringify = remove * fixup: disable formatting for the INIT section
This commit is contained in:
parent
9ec4417afc
commit
725cbe7d41
@ -5020,8 +5020,8 @@ void ex_buffer_all(exarg_T *eap)
|
||||
: wp->w_width != Columns)
|
||||
|| (had_tab > 0 && wp != firstwin))
|
||||
&& !ONE_WINDOW
|
||||
&& !(wp->w_closing ||
|
||||
wp->w_buffer->b_locked > 0)) {
|
||||
&& !(wp->w_closing
|
||||
|| wp->w_buffer->b_locked > 0)) {
|
||||
win_close(wp, false);
|
||||
wpnext = firstwin; // just in case an autocommand does
|
||||
// something strange with windows
|
||||
|
@ -432,8 +432,8 @@ int do_cmdline(char_u *cmdline, LineGetter fgetline, void *cookie, int flags)
|
||||
if (next_cmdline == NULL
|
||||
&& !force_abort
|
||||
&& cstack.cs_idx < 0
|
||||
&& !(getline_is_func &&
|
||||
func_has_abort(real_cookie))) {
|
||||
&& !(getline_is_func
|
||||
&& func_has_abort(real_cookie))) {
|
||||
did_emsg = FALSE;
|
||||
}
|
||||
|
||||
@ -8983,8 +8983,8 @@ ssize_t find_cmdline_var(const char_u *src, size_t *usedlen)
|
||||
/// @return an allocated string if a valid match was found.
|
||||
/// Returns NULL if no match was found. "usedlen" then still contains the
|
||||
/// number of characters to skip.
|
||||
char_u *eval_vars(char_u *src, char_u *srcstart, size_t *usedlen, linenr_T *lnump,
|
||||
char **errormsg, int *escaped)
|
||||
char_u *eval_vars(char_u *src, char_u *srcstart, size_t *usedlen, linenr_T *lnump, char **errormsg,
|
||||
int *escaped)
|
||||
{
|
||||
int i;
|
||||
char_u *s;
|
||||
|
@ -345,8 +345,8 @@ static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int curr
|
||||
// Load the file.
|
||||
//
|
||||
if (wp->w_buffer->b_ffname != NULL
|
||||
&& (!bt_nofile(wp->w_buffer) ||
|
||||
wp->w_buffer->terminal)) {
|
||||
&& (!bt_nofile(wp->w_buffer)
|
||||
|| wp->w_buffer->terminal)) {
|
||||
// Editing a file in this buffer: use ":edit file".
|
||||
// This may have side effects! (e.g., compressed or network file).
|
||||
//
|
||||
@ -431,8 +431,8 @@ static int put_view(FILE *fd, win_T *wp, int add_edit, unsigned *flagp, int curr
|
||||
//
|
||||
if ((*flagp & SSOP_FOLDS)
|
||||
&& wp->w_buffer->b_ffname != NULL
|
||||
&& (bt_normal(wp->w_buffer) ||
|
||||
bt_help(wp->w_buffer))) {
|
||||
&& (bt_normal(wp->w_buffer)
|
||||
|| bt_help(wp->w_buffer))) {
|
||||
if (put_folds(fd, wp) == FAIL) {
|
||||
return FAIL;
|
||||
}
|
||||
|
@ -4265,8 +4265,8 @@ static char_u *check_for_bom(char_u *p, long size, int *lenp, int flags)
|
||||
len = 4;
|
||||
} else if (flags == (FIO_UCS2 | FIO_ENDIAN_L)) {
|
||||
name = "ucs-2le"; // FF FE
|
||||
} else if (flags == FIO_ALL ||
|
||||
flags == (FIO_UTF16 | FIO_ENDIAN_L)) {
|
||||
} else if (flags == FIO_ALL
|
||||
|| flags == (FIO_UTF16 | FIO_ENDIAN_L)) {
|
||||
// utf-16le is preferred, it also works for ucs-2le text
|
||||
name = "utf-16le"; // FF FE
|
||||
}
|
||||
@ -4811,8 +4811,8 @@ int check_timestamps(int focus)
|
||||
}
|
||||
|
||||
if (!stuff_empty() || global_busy || !typebuf_typed()
|
||||
|| autocmd_busy || curbuf->b_ro_locked > 0 ||
|
||||
allbuf_lock > 0) {
|
||||
|| autocmd_busy || curbuf->b_ro_locked > 0
|
||||
|| allbuf_lock > 0) {
|
||||
need_check_timestamps = true; // check later
|
||||
} else {
|
||||
no_wait_return++;
|
||||
|
@ -1861,8 +1861,8 @@ static int vgetorpeek(bool advance)
|
||||
&& State != CONFIRM
|
||||
&& !((ctrl_x_mode_not_default() && vim_is_ctrl_x_key(c1))
|
||||
|| ((compl_cont_status & CONT_LOCAL)
|
||||
&& (c1 == Ctrl_N ||
|
||||
c1 == Ctrl_P)))) {
|
||||
&& (c1 == Ctrl_N
|
||||
|| c1 == Ctrl_P)))) {
|
||||
if (c1 == K_SPECIAL) {
|
||||
nolmaplen = 2;
|
||||
} else {
|
||||
|
@ -842,6 +842,7 @@ EXTERN disptick_T display_tick INIT(= 0);
|
||||
// cursor position in Insert mode.
|
||||
EXTERN linenr_T spell_redraw_lnum INIT(= 0);
|
||||
|
||||
// uncrustify:off
|
||||
|
||||
// The error messages that can be shared are included here.
|
||||
// Excluded are errors that are only used once and debugging messages.
|
||||
@ -850,12 +851,8 @@ EXTERN char e_afterinit[] INIT(= N_("E905: Cannot set this option after startup"
|
||||
EXTERN char e_api_spawn_failed[] INIT(= N_("E903: Could not spawn API job"));
|
||||
EXTERN char e_argreq[] INIT(= N_("E471: Argument required"));
|
||||
EXTERN char e_backslash[] INIT(= N_("E10: \\ should be followed by /, ? or &"));
|
||||
EXTERN char e_cmdwin[] INIT(=
|
||||
N_(
|
||||
"E11: Invalid in command-line window; <CR> executes, CTRL-C quits"));
|
||||
EXTERN char e_curdir[] INIT(=
|
||||
N_(
|
||||
"E12: Command not allowed from exrc/vimrc in current dir or tag search"));
|
||||
EXTERN char e_cmdwin[] INIT(= N_("E11: Invalid in command-line window; <CR> executes, CTRL-C quits"));
|
||||
EXTERN char e_curdir[] INIT(= N_( "E12: Command not allowed from exrc/vimrc in current dir or tag search"));
|
||||
EXTERN char e_endif[] INIT(= N_("E171: Missing :endif"));
|
||||
EXTERN char e_endtry[] INIT(= N_("E600: Missing :endtry"));
|
||||
EXTERN char e_endwhile[] INIT(= N_("E170: Missing :endwhile"));
|
||||
@ -885,10 +882,7 @@ EXTERN char e_channotpty[] INIT(= N_("E904: channel is not a pty"));
|
||||
EXTERN char e_stdiochan2[] INIT(= N_("E905: Couldn't open stdio channel: %s"));
|
||||
EXTERN char e_invstream[] INIT(= N_("E906: invalid stream for channel"));
|
||||
EXTERN char e_invstreamrpc[] INIT(= N_("E906: invalid stream for rpc channel, use 'rpc'"));
|
||||
EXTERN char e_streamkey[] INIT(=
|
||||
N_(
|
||||
"E5210: dict key '%s' already set for buffered stream in channel %"
|
||||
PRIu64));
|
||||
EXTERN char e_streamkey[] INIT(= N_("E5210: dict key '%s' already set for buffered stream in channel %" PRIu64));
|
||||
EXTERN char e_libcall[] INIT(= N_("E364: Library call failed for \"%s()\""));
|
||||
EXTERN char e_fsync[] INIT(= N_("E667: Fsync failed: %s"));
|
||||
EXTERN char e_mkdir[] INIT(= N_("E739: Cannot create directory %s: %s"));
|
||||
@ -939,9 +933,7 @@ EXTERN char e_dictkey[] INIT(= N_("E716: Key not present in Dictionary: \"%s\"")
|
||||
EXTERN char e_listreq[] INIT(= N_("E714: List required"));
|
||||
EXTERN char e_listblobreq[] INIT(= N_("E897: List or Blob required"));
|
||||
EXTERN char e_listdictarg[] INIT(= N_("E712: Argument of %s must be a List or Dictionary"));
|
||||
EXTERN char e_listdictblobarg[] INIT(=
|
||||
N_(
|
||||
"E896: Argument of %s must be a List, Dictionary or Blob"));
|
||||
EXTERN char e_listdictblobarg[] INIT(= N_("E896: Argument of %s must be a List, Dictionary or Blob"));
|
||||
EXTERN char e_readerrf[] INIT(= N_("E47: Error while reading errorfile"));
|
||||
EXTERN char e_sandbox[] INIT(= N_("E48: Not allowed in sandbox"));
|
||||
EXTERN char e_secure[] INIT(= N_("E523: Not allowed here"));
|
||||
@ -982,23 +974,19 @@ EXTERN char e_float_as_string[] INIT(= N_("E806: using Float as a String"));
|
||||
|
||||
EXTERN char e_autocmd_err[] INIT(= N_("E5500: autocmd has thrown an exception: %s"));
|
||||
EXTERN char e_cmdmap_err[] INIT(= N_("E5520: <Cmd> mapping must end with <CR>"));
|
||||
EXTERN char
|
||||
e_cmdmap_repeated[] INIT(=N_("E5521: <Cmd> mapping must end with <CR> before second <Cmd>"));
|
||||
EXTERN char e_cmdmap_repeated[] INIT(= N_("E5521: <Cmd> mapping must end with <CR> before second <Cmd>"));
|
||||
EXTERN char e_cmdmap_key[] INIT(= N_("E5522: <Cmd> mapping must not include %s key"));
|
||||
|
||||
EXTERN char e_api_error[] INIT(= N_("E5555: API call: %s"));
|
||||
|
||||
EXTERN char e_luv_api_disabled[] INIT(= N_("E5560: %s must not be called in a lua loop callback"));
|
||||
|
||||
EXTERN char e_floatonly[] INIT(=N_(
|
||||
"E5601: Cannot close window, only floating window would remain"));
|
||||
EXTERN char e_floatonly[] INIT(= N_("E5601: Cannot close window, only floating window would remain"));
|
||||
EXTERN char e_floatexchange[] INIT(= N_("E5602: Cannot exchange or rotate float"));
|
||||
|
||||
EXTERN char e_non_empty_string_required[] INIT(= N_("E1142: Non-empty string required"));
|
||||
|
||||
EXTERN char e_cannot_define_autocommands_for_all_events[] INIT(=
|
||||
N_(
|
||||
"E1155: Cannot define autocommands for ALL events"));
|
||||
EXTERN char e_cannot_define_autocommands_for_all_events[] INIT(= N_("E1155: Cannot define autocommands for ALL events"));
|
||||
|
||||
EXTERN char top_bot_msg[] INIT(= N_("search hit TOP, continuing at BOTTOM"));
|
||||
EXTERN char bot_top_msg[] INIT(= N_("search hit BOTTOM, continuing at TOP"));
|
||||
@ -1020,6 +1008,8 @@ EXTERN bool embedded_mode INIT(= false);
|
||||
// Do not start a UI nor read/write to stdio (unless embedding).
|
||||
EXTERN bool headless_mode INIT(= false);
|
||||
|
||||
// uncrustify:on
|
||||
|
||||
/// Used to track the status of external functions.
|
||||
/// Currently only used for iconv().
|
||||
typedef enum {
|
||||
|
@ -966,7 +966,7 @@ static int cs_find_common(char *opt, char *pat, int forceit, int verbose, int us
|
||||
qfpos++;
|
||||
// next symbol must be + or -
|
||||
if (strchr(CSQF_FLAGS, *qfpos) == NULL) {
|
||||
(void)semsg(_("E469: invalid cscopequickfix flag %c for %c"), *qfpos, *(qfpos - 1));;
|
||||
(void)semsg(_("E469: invalid cscopequickfix flag %c for %c"), *qfpos, *(qfpos - 1));
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
@ -382,8 +382,8 @@ static bool check_top_offset(void)
|
||||
topline_back(curwin, &loff);
|
||||
// Stop when included a line above the window.
|
||||
if (loff.lnum < curwin->w_topline
|
||||
|| (loff.lnum == curwin->w_topline &&
|
||||
loff.fill > 0)) {
|
||||
|| (loff.lnum == curwin->w_topline
|
||||
&& loff.fill > 0)) {
|
||||
break;
|
||||
}
|
||||
n += loff.height;
|
||||
|
@ -570,8 +570,8 @@ static bool normal_need_additional_char(NormalState *s)
|
||||
//
|
||||
// TODO(tarruda): Visual state needs to be refactored into a
|
||||
// separate state that "inherits" from normal state.
|
||||
|| ((cmdchar == 'a' || cmdchar == 'i') &&
|
||||
(pending_op || VIsual_active)));
|
||||
|| ((cmdchar == 'a' || cmdchar == 'i')
|
||||
&& (pending_op || VIsual_active)));
|
||||
}
|
||||
|
||||
static bool normal_need_redraw_mode_message(NormalState *s)
|
||||
@ -5341,8 +5341,8 @@ static void nv_right(cmdarg_T *cap)
|
||||
|
||||
for (n = cap->count1; n > 0; --n) {
|
||||
if ((!PAST_LINE && oneright() == false)
|
||||
|| (PAST_LINE &&
|
||||
*get_cursor_pos_ptr() == NUL)) {
|
||||
|| (PAST_LINE
|
||||
&& *get_cursor_pos_ptr() == NUL)) {
|
||||
// <Space> wraps to next line if 'whichwrap' has 's'.
|
||||
// 'l' wraps to next line if 'whichwrap' has 'l'.
|
||||
// CURS_RIGHT wraps to next line if 'whichwrap' has '>'.
|
||||
@ -7688,8 +7688,8 @@ static void adjust_cursor(oparg_T *oap)
|
||||
// - 'virtualedit' is not "all" and not "onemore".
|
||||
if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL
|
||||
&& (!VIsual_active || *p_sel == 'o')
|
||||
&& !virtual_active() &&
|
||||
(ve_flags & VE_ONEMORE) == 0) {
|
||||
&& !virtual_active()
|
||||
&& (ve_flags & VE_ONEMORE) == 0) {
|
||||
curwin->w_cursor.col--;
|
||||
// prevent cursor from moving on the trail byte
|
||||
mb_adjust_cursor();
|
||||
|
@ -3936,8 +3936,8 @@ int do_join(size_t count, int insert_space, int save_undo, int use_formatoptions
|
||||
|| (utf_ptr2char(curr) < 0x100 && endcurr1 < 0x100))
|
||||
&& (!has_format_option(FO_MBYTE_JOIN2)
|
||||
|| (utf_ptr2char(curr) < 0x100 && !utf_eat_space(endcurr1))
|
||||
|| (endcurr1 < 0x100 &&
|
||||
!utf_eat_space(utf_ptr2char(curr))))) {
|
||||
|| (endcurr1 < 0x100
|
||||
&& !utf_eat_space(utf_ptr2char(curr))))) {
|
||||
// don't add a space if the line is ending in a space
|
||||
if (endcurr1 == ' ') {
|
||||
endcurr1 = endcurr2;
|
||||
|
@ -2315,8 +2315,8 @@ static bool valid_spellfile(const char_u *val)
|
||||
/// @param opt_flags OPT_LOCAL and/or OPT_GLOBAL
|
||||
/// @param value_checked value was checked to be safe, no need to set P_INSECURE
|
||||
static char *did_set_string_option(int opt_idx, char_u **varp, bool new_value_alloced,
|
||||
char_u *oldval, char *errbuf, size_t errbuflen,
|
||||
int opt_flags, int *value_checked)
|
||||
char_u *oldval, char *errbuf, size_t errbuflen, int opt_flags,
|
||||
int *value_checked)
|
||||
{
|
||||
char *errmsg = NULL;
|
||||
char_u *s, *p;
|
||||
|
@ -1289,8 +1289,8 @@ int gen_expand_wildcards(int num_pat, char_u **pat, int *num_file, char_u ***fil
|
||||
&& !path_is_absolute(p)
|
||||
&& !(p[0] == '.'
|
||||
&& (vim_ispathsep(p[1])
|
||||
|| (p[1] == '.' &&
|
||||
vim_ispathsep(p[2]))))) {
|
||||
|| (p[1] == '.'
|
||||
&& vim_ispathsep(p[2]))))) {
|
||||
/* :find completion where 'path' is used.
|
||||
* Recursiveness is OK here. */
|
||||
recursive = false;
|
||||
@ -1517,8 +1517,8 @@ void simplify_filename(char_u *filename)
|
||||
* or "p" is at the "start" of the (absolute or relative) path name. */
|
||||
if (vim_ispathsep(*p)) {
|
||||
STRMOVE(p, p + 1); // remove duplicate "/"
|
||||
} else if (p[0] == '.' &&
|
||||
(vim_ispathsep(p[1]) || p[1] == NUL)) {
|
||||
} else if (p[0] == '.'
|
||||
&& (vim_ispathsep(p[1]) || p[1] == NUL)) {
|
||||
if (p == start && relative) {
|
||||
p += 1 + (p[1] != NUL); // keep single "." or leading "./"
|
||||
} else {
|
||||
|
@ -4413,8 +4413,8 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
||||
|| filler_todo > 0
|
||||
|| (wp->w_p_list && wp->w_p_lcs_chars.eol != NUL
|
||||
&& p_extra != at_end_str)
|
||||
|| (n_extra != 0 &&
|
||||
(c_extra != NUL || *p_extra != NUL)))) {
|
||||
|| (n_extra != 0
|
||||
&& (c_extra != NUL || *p_extra != NUL)))) {
|
||||
bool wrap = wp->w_p_wrap // Wrapping enabled.
|
||||
&& filler_todo <= 0 // Not drawing diff filler lines.
|
||||
&& lcs_eol_one != -1 // Haven't printed the lcs_eol character.
|
||||
@ -5011,8 +5011,8 @@ static int skip_status_match_char(expand_T *xp, char_u *s)
|
||||
if ((rem_backslash(s) && xp->xp_context != EXPAND_HELP)
|
||||
|| ((xp->xp_context == EXPAND_MENUS
|
||||
|| xp->xp_context == EXPAND_MENUNAMES)
|
||||
&& (s[0] == '\t' ||
|
||||
(s[0] == '\\' && s[1] != NUL)))) {
|
||||
&& (s[0] == '\t'
|
||||
|| (s[0] == '\\' && s[1] != NUL)))) {
|
||||
#ifndef BACKSLASH_IN_FILENAME
|
||||
if (xp->xp_shell && csh_like_shell() && s[1] == '\\' && s[2] == '!') {
|
||||
return 2;
|
||||
|
@ -370,8 +370,8 @@ int ignorecase_opt(char_u *pat, int ic_in, int scs)
|
||||
{
|
||||
int ic = ic_in;
|
||||
if (ic && !no_smartcase && scs
|
||||
&& !(ctrl_x_mode_not_default() &&
|
||||
curbuf->b_p_inf)) {
|
||||
&& !(ctrl_x_mode_not_default()
|
||||
&& curbuf->b_p_inf)) {
|
||||
ic = !pat_has_uppercase(pat);
|
||||
}
|
||||
no_smartcase = false;
|
||||
|
@ -4352,8 +4352,8 @@ static void suggest_trie_walk(suginfo_T *su, langp_T *lp, char_u *fword, bool so
|
||||
// just deleted this byte, accepting it is always cheaper than
|
||||
// delete + substitute.
|
||||
if (c == fword[sp->ts_fidx]
|
||||
|| (sp->ts_tcharlen > 0 &&
|
||||
sp->ts_isdiff != DIFF_NONE)) {
|
||||
|| (sp->ts_tcharlen > 0
|
||||
&& sp->ts_isdiff != DIFF_NONE)) {
|
||||
newscore = 0;
|
||||
} else {
|
||||
newscore = SCORE_SUBST;
|
||||
|
@ -3248,8 +3248,8 @@ static int spell_read_dic(spellinfo_T *spin, char_u *fname, afffile_T *affile)
|
||||
// Extract flags from the affix list.
|
||||
flags |= get_affix_flags(affile, afflist);
|
||||
|
||||
if (affile->af_needaffix != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist,
|
||||
if (affile->af_needaffix != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist,
|
||||
affile->af_needaffix)) {
|
||||
need_affix = true;
|
||||
}
|
||||
@ -3311,31 +3311,31 @@ static int get_affix_flags(afffile_T *affile, char_u *afflist)
|
||||
{
|
||||
int flags = 0;
|
||||
|
||||
if (affile->af_keepcase != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist,
|
||||
if (affile->af_keepcase != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist,
|
||||
affile->af_keepcase)) {
|
||||
flags |= WF_KEEPCAP | WF_FIXCAP;
|
||||
}
|
||||
if (affile->af_rare != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist, affile->af_rare)) {
|
||||
if (affile->af_rare != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist, affile->af_rare)) {
|
||||
flags |= WF_RARE;
|
||||
}
|
||||
if (affile->af_bad != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist, affile->af_bad)) {
|
||||
if (affile->af_bad != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist, affile->af_bad)) {
|
||||
flags |= WF_BANNED;
|
||||
}
|
||||
if (affile->af_needcomp != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist,
|
||||
if (affile->af_needcomp != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist,
|
||||
affile->af_needcomp)) {
|
||||
flags |= WF_NEEDCOMP;
|
||||
}
|
||||
if (affile->af_comproot != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist,
|
||||
if (affile->af_comproot != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist,
|
||||
affile->af_comproot)) {
|
||||
flags |= WF_COMPROOT;
|
||||
}
|
||||
if (affile->af_nosuggest != 0 &&
|
||||
flag_in_afflist(affile->af_flagtype, afflist,
|
||||
if (affile->af_nosuggest != 0
|
||||
&& flag_in_afflist(affile->af_flagtype, afflist,
|
||||
affile->af_nosuggest)) {
|
||||
flags |= WF_NOSUGGEST;
|
||||
}
|
||||
|
@ -1788,8 +1788,8 @@ static int syn_current_attr(const bool syncing, const bool displaying, bool *con
|
||||
line = syn_getcurline();
|
||||
const char_u *cur_pos = line + current_col;
|
||||
if (vim_iswordp_buf(cur_pos, syn_buf)
|
||||
&& (current_col == 0 ||
|
||||
!vim_iswordp_buf(cur_pos - 1 - utf_head_off(line, cur_pos - 1),
|
||||
&& (current_col == 0
|
||||
|| !vim_iswordp_buf(cur_pos - 1 - utf_head_off(line, cur_pos - 1),
|
||||
syn_buf))) {
|
||||
syn_id = check_keyword_id(line, (int)current_col, &endcol, &flags,
|
||||
&next_list, cur_si, &cchar);
|
||||
|
@ -1958,8 +1958,8 @@ static void win_equal_rec(win_T *next_curwin, bool current, frame_T *topfr, int
|
||||
// Set the width/height of this frame.
|
||||
// Redraw when size or position changes
|
||||
if (topfr->fr_height != height || topfr->fr_win->w_winrow != row
|
||||
|| topfr->fr_width != width ||
|
||||
topfr->fr_win->w_wincol != col) {
|
||||
|| topfr->fr_width != width
|
||||
|| topfr->fr_win->w_wincol != col) {
|
||||
topfr->fr_win->w_winrow = row;
|
||||
frame_new_height(topfr, height, false, false);
|
||||
topfr->fr_win->w_wincol = col;
|
||||
@ -5827,8 +5827,8 @@ void scroll_to_fraction(win_T *wp, int prev_height)
|
||||
// is visible.
|
||||
if (height > 0
|
||||
&& (!wp->w_p_scb || wp == curwin)
|
||||
&& (height < wp->w_buffer->b_ml.ml_line_count ||
|
||||
wp->w_topline > 1)) {
|
||||
&& (height < wp->w_buffer->b_ml.ml_line_count
|
||||
|| wp->w_topline > 1)) {
|
||||
/*
|
||||
* Find a value for w_topline that shows the cursor at the same
|
||||
* relative position in the window as before (more or less).
|
||||
|
@ -141,7 +141,7 @@ sp_enum_before_assign = ignore # ignore/add/remove/force/not_defined
|
||||
# Add or remove space after assignment '=' in enum.
|
||||
#
|
||||
# Overrides sp_enum_assign.
|
||||
sp_enum_after_assign = ignore # ignore/add/remove/force/not_defined
|
||||
sp_enum_after_assign = force # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space around assignment ':' in enum.
|
||||
sp_enum_colon = ignore # ignore/add/remove/force/not_defined
|
||||
@ -149,11 +149,11 @@ sp_enum_colon = ignore # ignore/add/remove/force/not_defined
|
||||
# Add or remove space around preprocessor '##' concatenation operator.
|
||||
#
|
||||
# Default: add
|
||||
sp_pp_concat = ignore # ignore/add/remove/force/not_defined
|
||||
sp_pp_concat = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space after preprocessor '#' stringify operator.
|
||||
# Also affects the '#@' charizing operator.
|
||||
sp_pp_stringify = ignore # ignore/add/remove/force/not_defined
|
||||
sp_pp_stringify = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before preprocessor '#' stringify operator
|
||||
# as in '#define x(y) L#y'.
|
||||
@ -334,10 +334,10 @@ sp_after_sparen = ignore # ignore/add/remove/force/not_defined
|
||||
sp_sparen_brace = ignore # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between 'do' and '{'.
|
||||
sp_do_brace_open = ignore # ignore/add/remove/force/not_defined
|
||||
sp_do_brace_open = force # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between '}' and 'while'.
|
||||
sp_brace_close_while = ignore # ignore/add/remove/force/not_defined
|
||||
sp_brace_close_while = force # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between 'while' and '('. Overrides sp_before_sparen.
|
||||
sp_while_paren_open = ignore # ignore/add/remove/force/not_defined
|
||||
@ -354,18 +354,18 @@ sp_special_semi = ignore # ignore/add/remove/force/not_defined
|
||||
# Add or remove space before ';'.
|
||||
#
|
||||
# Default: remove
|
||||
sp_before_semi = ignore # ignore/add/remove/force/not_defined
|
||||
sp_before_semi = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before ';' in non-empty 'for' statements.
|
||||
sp_before_semi_for = ignore # ignore/add/remove/force/not_defined
|
||||
sp_before_semi_for = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before a semicolon of an empty left part of a for
|
||||
# statement, as in 'for ( <here> ; ; )'.
|
||||
sp_before_semi_for_empty = ignore # ignore/add/remove/force/not_defined
|
||||
sp_before_semi_for_empty = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between the semicolons of an empty middle part of a for
|
||||
# statement, as in 'for ( ; <here> ; )'.
|
||||
sp_between_semi_for_empty = ignore # ignore/add/remove/force/not_defined
|
||||
sp_between_semi_for_empty = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space after ';', except when followed by a comment.
|
||||
#
|
||||
@ -379,10 +379,10 @@ sp_after_semi_for = force # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space after the final semicolon of an empty part of a for
|
||||
# statement, as in 'for ( ; ; <here> )'.
|
||||
sp_after_semi_for_empty = ignore # ignore/add/remove/force/not_defined
|
||||
sp_after_semi_for_empty = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before '[' (except '[]').
|
||||
sp_before_square = ignore # ignore/add/remove/force/not_defined
|
||||
sp_before_square = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before '[' for a variable definition.
|
||||
#
|
||||
@ -393,13 +393,13 @@ sp_before_vardef_square = remove # ignore/add/remove/force/not_defined
|
||||
sp_before_square_asm_block = ignore # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before '[]'.
|
||||
sp_before_squares = ignore # ignore/add/remove/force/not_defined
|
||||
sp_before_squares = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before C++17 structured bindings.
|
||||
sp_cpp_before_struct_binding = ignore # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space inside a non-empty '[' and ']'.
|
||||
sp_inside_square = ignore # ignore/add/remove/force/not_defined
|
||||
sp_inside_square = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space inside '[]'.
|
||||
sp_inside_square_empty = ignore # ignore/add/remove/force/not_defined
|
||||
@ -592,18 +592,18 @@ sp_func_def_paren_empty = ignore # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space inside empty function '()'.
|
||||
# Overrides sp_after_angle unless use_sp_after_angle_always is set to true.
|
||||
sp_inside_fparens = ignore # ignore/add/remove/force/not_defined
|
||||
sp_inside_fparens = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space inside function '(' and ')'.
|
||||
sp_inside_fparen = ignore # ignore/add/remove/force/not_defined
|
||||
sp_inside_fparen = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space inside the first parentheses in a function type, as in
|
||||
# 'void (*x)(...)'.
|
||||
sp_inside_tparen = ignore # ignore/add/remove/force/not_defined
|
||||
sp_inside_tparen = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between the ')' and '(' in a function type, as in
|
||||
# 'void (*x)(...)'.
|
||||
sp_after_tparen_close = ignore # ignore/add/remove/force/not_defined
|
||||
sp_after_tparen_close = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between ']' and '(' when part of a function call.
|
||||
sp_square_fparen = ignore # ignore/add/remove/force/not_defined
|
||||
@ -649,7 +649,7 @@ sp_func_class_paren = ignore # ignore/add/remove/force/not_defined
|
||||
sp_func_class_paren_empty = ignore # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between 'return' and '('.
|
||||
sp_return_paren = ignore # ignore/add/remove/force/not_defined
|
||||
sp_return_paren = force # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between 'return' and '{'.
|
||||
sp_return_brace = ignore # ignore/add/remove/force/not_defined
|
||||
@ -714,7 +714,7 @@ sp_else_brace = add # ignore/add/remove/force/not_defined
|
||||
sp_brace_else = add # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space between '}' and the name of a typedef on the same line.
|
||||
sp_brace_typedef = ignore # ignore/add/remove/force/not_defined
|
||||
sp_brace_typedef = force # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove space before the '{' of a 'catch' statement, if the '{' and
|
||||
# 'catch' are on the same line, as in 'catch (decl) <here> {'.
|
||||
@ -1632,7 +1632,7 @@ nl_using_brace = ignore # ignore/add/remove/force/not_defined
|
||||
nl_brace_brace = ignore # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove newline between 'do' and '{'.
|
||||
nl_do_brace = ignore # ignore/add/remove/force/not_defined
|
||||
nl_do_brace = remove # ignore/add/remove/force/not_defined
|
||||
|
||||
# Add or remove newline between '}' and 'while' of 'do' statement.
|
||||
nl_brace_while = ignore # ignore/add/remove/force/not_defined
|
||||
@ -2333,7 +2333,7 @@ pos_arith = ignore # ignore/break/force/lead/trail/join/
|
||||
pos_assign = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
|
||||
# The position of Boolean operators in wrapped expressions.
|
||||
pos_bool = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
pos_bool = lead # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
|
||||
# The position of comparison operators in wrapped expressions.
|
||||
pos_compare = ignore # ignore/break/force/lead/trail/join/lead_break/lead_force/trail_break/trail_force
|
||||
@ -3307,5 +3307,5 @@ set QUESTION REAL_FATTR_CONST
|
||||
set QUESTION REAL_FATTR_NONNULL_ALL
|
||||
set QUESTION REAL_FATTR_PURE
|
||||
set QUESTION REAL_FATTR_WARN_UNUSED_RESULT
|
||||
# option(s) with 'not default' value: 69
|
||||
# option(s) with 'not default' value: 87
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user