refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)

This commit is contained in:
dundargoc
2022-05-25 20:31:14 +02:00
committed by GitHub
parent 8c4e62351f
commit 9fec6dc9a2
145 changed files with 5 additions and 586 deletions

View File

@@ -453,7 +453,6 @@ static void shift_block(oparg_T *oap, int amount)
non_white_col += incr;
}
const colnr_T block_space_width = non_white_col - oap->start_vcol;
// We will shift by "total" or "block_space_width", whichever is less.
const colnr_T shift_amount = block_space_width < total
@@ -2105,7 +2104,6 @@ static int op_replace(oparg_T *oap, int c)
return OK;
}
/*
* Handle the (non-standard vi) tilde operator. Also for "gu", "gU" and "g?".
*/
@@ -2629,7 +2627,6 @@ void clear_registers(void)
#endif
/// Free contents of yankreg `reg`.
/// Called for normal freeing and in case of error.
/// `reg` must not be NULL (but `reg->y_array` might be)
@@ -3853,7 +3850,6 @@ void ex_display(exarg_T *eap)
continue; // did not ask for this register
}
if (i == -1) {
if (y_previous != NULL) {
yb = y_previous;
@@ -5436,7 +5432,6 @@ void format_reg_type(MotionType reg_type, colnr_T reg_width, char *buf, size_t b
}
}
/// When `flags` has `kGRegList` return a list with text `s`.
/// Otherwise just return `s`.
///
@@ -5817,7 +5812,6 @@ void clear_oparg(oparg_T *oap)
memset(oap, 0, sizeof(oparg_T));
}
/*
* Count the number of bytes, characters and "words" in a line.
*
@@ -6286,7 +6280,6 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
int restart_edit_save;
int lbr_saved = curwin->w_p_lbr;
// The visual area is remembered for redo
static int redo_VIsual_mode = NUL; // 'v', 'V', or Ctrl-V
static linenr_T redo_VIsual_line_count; // number of lines
@@ -7276,7 +7269,6 @@ void restore_batch_count(int save_count)
}
}
/// Check whether register is empty
static inline bool reg_empty(const yankreg_T *const reg)
FUNC_ATTR_PURE