mirror of
https://github.com/neovim/neovim.git
synced 2025-09-11 13:58:18 +00:00
refactor: saner options for uncrustify #16196
* refactor: general good option changes sp_deref = remove sp_not = remove sp_inv = remove sp_inside_paren_cast = remove mod_remove_duplicate_include = true sp_after_semi = add sp_after_semi_for = force sp_sizeof_paren = remove nl_return_expr = remove nl_else_brace = remove nl_else_if = remove * refactor: mod_remove_extra_semicolon = true * refactor: nl_max = 3 * refactor: sp_bool = force * refactor: sp_compare = force * refactor: sp_inside_paren = remove * refactor: sp_paren_paren = remove * refactor: sp_inside_sparen = remove * refactor: sp_before_sparen = force * refactor: sp_sign = remove * refactor: sp_addr = remove * refactor: sp_member = remove * refactor: nl_struct_brace = remove * refactor: nl_before_if_closing_paren = remove * refactor: nl_fdef_brace = force * refactor: sp_paren_comma = force * refactor: mod_full_brace_do = add
This commit is contained in:
@@ -419,7 +419,7 @@ void set_init_1(bool clean_arg)
|
||||
}
|
||||
xfree(item);
|
||||
}
|
||||
if(mustfree) {
|
||||
if (mustfree) {
|
||||
xfree(p);
|
||||
}
|
||||
}
|
||||
@@ -2932,7 +2932,7 @@ ambw_end:
|
||||
// When changing the 'signcolumn' to or from 'number', recompute the
|
||||
// width of the number column if 'number' or 'relativenumber' is set.
|
||||
if (((*oldval == 'n' && *(oldval + 1) == 'u')
|
||||
|| (*curwin->w_p_scl == 'n' && *(curwin->w_p_scl + 1) =='u'))
|
||||
|| (*curwin->w_p_scl == 'n' && *(curwin->w_p_scl + 1) == 'u'))
|
||||
&& (curwin->w_p_nu || curwin->w_p_rnu)) {
|
||||
curwin->w_nrwidth_line_count = 0;
|
||||
}
|
||||
@@ -7330,7 +7330,7 @@ bool tabstop_set(char_u *var, long **array)
|
||||
t = 1;
|
||||
for (cp = var; *cp != NUL;) {
|
||||
(*array)[t++] = atoi((char *)cp);
|
||||
while (*cp != NUL && *cp != ',') {
|
||||
while (*cp != NUL && *cp != ',') {
|
||||
cp++;
|
||||
}
|
||||
if (*cp != NUL) {
|
||||
|
Reference in New Issue
Block a user