mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 09:18:19 +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:
@@ -5697,7 +5697,8 @@ void ex_comclear(exarg_T *eap)
|
||||
uc_clear(&curbuf->b_ucmds);
|
||||
}
|
||||
|
||||
static void free_ucmd(ucmd_T *cmd) {
|
||||
static void free_ucmd(ucmd_T *cmd)
|
||||
{
|
||||
xfree(cmd->uc_name);
|
||||
xfree(cmd->uc_rep);
|
||||
xfree(cmd->uc_compl_arg);
|
||||
@@ -7207,8 +7208,7 @@ void ex_splitview(exarg_T *eap)
|
||||
*eap->cmd == 'v' ? WSP_VERT : 0) != FAIL) {
|
||||
// Reset 'scrollbind' when editing another file, but keep it when
|
||||
// doing ":split" without arguments.
|
||||
if (*eap->arg != NUL
|
||||
) {
|
||||
if (*eap->arg != NUL) {
|
||||
RESET_BINDING(curwin);
|
||||
} else {
|
||||
do_check_scrollbind(false);
|
||||
@@ -7369,7 +7369,6 @@ static void ex_resize(exarg_T *eap)
|
||||
if (eap->addr_count > 0) {
|
||||
n = eap->line2;
|
||||
for (wp = firstwin; wp->w_next != NULL && --n > 0; wp = wp->w_next) {
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -7562,7 +7561,6 @@ static void ex_nogui(exarg_T *eap)
|
||||
}
|
||||
|
||||
|
||||
|
||||
static void ex_swapname(exarg_T *eap)
|
||||
{
|
||||
if (curbuf->b_ml.ml_mfp == NULL || curbuf->b_ml.ml_mfp->mf_fname == NULL) {
|
||||
@@ -8054,8 +8052,7 @@ static void ex_operators(exarg_T *eap)
|
||||
|
||||
default: // CMD_rshift or CMD_lshift
|
||||
if (
|
||||
(eap->cmdidx == CMD_rshift) ^ curwin->w_p_rl
|
||||
) {
|
||||
(eap->cmdidx == CMD_rshift) ^ curwin->w_p_rl) {
|
||||
oa.op_type = OP_RSHIFT;
|
||||
} else {
|
||||
oa.op_type = OP_LSHIFT;
|
||||
|
Reference in New Issue
Block a user