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

@@ -86,7 +86,6 @@ typedef struct normal_state {
static int VIsual_mode_orig = NUL; // saved Visual mode
#ifdef INCLUDE_GENERATED_DECLARATIONS
# include "normal.c.generated.h"
#endif
@@ -1605,7 +1604,6 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
}
}
// CTRL right mouse button does CTRL-T
if (is_click && (mod_mask & MOD_MASK_CTRL) && which_button == MOUSE_RIGHT) {
if (State & MODE_INSERT) {
@@ -1781,7 +1779,6 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
return false;
}
// When 'mousemodel' is "popup" or "popup_setpos", translate mouse events:
// right button up -> pop-up menu
// shift-left button -> right button
@@ -1902,7 +1899,6 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
}
}
// Set global flag that we are extending the Visual area with mouse dragging;
// temporarily minimize 'scrolloff'.
if (VIsual_active && is_drag && get_scrolloff_value(curwin)) {
@@ -2556,7 +2552,6 @@ static char_u old_showcmd_buf[SHOWCMD_BUFLEN]; // For push_showcmd()
static bool showcmd_is_clear = true;
static bool showcmd_visual = false;
void clear_showcmd(void)
{
if (!p_sc) {
@@ -3816,7 +3811,6 @@ dozet:
}
break;
case 'u': // "zug" and "zuw": undo "zg" and "zw"
no_mapping++;
allow_keys++; // no mapping for nchar, but allow key codes
@@ -3903,7 +3897,6 @@ dozet:
}
}
/// "Q" command.
static void nv_regreplay(cmdarg_T *cap)
{
@@ -5448,7 +5441,6 @@ static void n_swapchar(cmdarg_T *cap)
}
}
check_cursor();
curwin->w_set_curswant = true;
if (did_change) {
@@ -5805,7 +5797,6 @@ static void n_start_visual_mode(int c)
}
}
/// CTRL-W: Window commands
static void nv_window(cmdarg_T *cap)
{
@@ -6695,7 +6686,6 @@ static void nv_select(cmdarg_T *cap)
}
}
/// "G", "gg", CTRL-END, CTRL-HOME.
/// cap->arg is true for "G".
static void nv_goto(cmdarg_T *cap)