mirror of
https://github.com/neovim/neovim.git
synced 2025-10-07 02:16:31 +00:00
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
This commit is contained in:
@@ -160,7 +160,6 @@ typedef struct {
|
||||
} WinExtmark;
|
||||
static kvec_t(WinExtmark) win_extmark_arr INIT(= KV_INITIAL_VALUE);
|
||||
|
||||
|
||||
#ifdef INCLUDE_GENERATED_DECLARATIONS
|
||||
# include "screen.c.generated.h"
|
||||
#endif
|
||||
@@ -551,7 +550,6 @@ int update_screen(int type)
|
||||
bool did_one = false;
|
||||
search_hl.rm.regprog = NULL;
|
||||
|
||||
|
||||
FOR_ALL_WINDOWS_IN_TAB(wp, curtab) {
|
||||
if (wp->w_redr_type == CLEAR && wp->w_floating && wp->w_grid_alloc.chars) {
|
||||
grid_invalidate(&wp->w_grid_alloc);
|
||||
@@ -610,7 +608,6 @@ int update_screen(int type)
|
||||
decor_providers_invoke_end(&providers, &provider_err);
|
||||
kvi_destroy(providers);
|
||||
|
||||
|
||||
// either cmdline is cleared, not drawn or mode is last drawn
|
||||
cmdline_was_last_drawn = false;
|
||||
return OK;
|
||||
@@ -1721,7 +1718,6 @@ static void win_update(win_T *wp, DecorProviders *providers)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// restore got_int, unless CTRL-C was hit while redrawing
|
||||
if (!got_int) {
|
||||
got_int = save_got_int;
|
||||
@@ -1806,7 +1802,6 @@ static void win_draw_end(win_T *wp, int c1, int c2, bool draw_margin, int row, i
|
||||
set_empty_rows(wp, row);
|
||||
}
|
||||
|
||||
|
||||
/// Advance **color_cols
|
||||
///
|
||||
/// @return true when there are columns to draw.
|
||||
@@ -1889,7 +1884,6 @@ done:
|
||||
return cells;
|
||||
}
|
||||
|
||||
|
||||
/// Fills the foldcolumn at "p" for window "wp".
|
||||
/// Only to be called when 'foldcolumn' > 0.
|
||||
///
|
||||
@@ -4113,7 +4107,6 @@ static int win_line(win_T *wp, linenr_T lnum, int startrow, int endrow, bool noc
|
||||
n_attr = 0;
|
||||
}
|
||||
|
||||
|
||||
if (utf_char2cells(mb_c) > 1) {
|
||||
// Need to fill two screen columns.
|
||||
if (wp->w_p_rl) {
|
||||
@@ -4498,7 +4491,6 @@ static void get_sign_display_info(bool nrcol, win_T *wp, linenr_T lnum, sign_att
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Mirror text "str" for right-left displaying.
|
||||
* Only works for single-byte characters (e.g., numbers).
|
||||
@@ -5468,7 +5460,6 @@ static void win_redr_border(win_T *wp)
|
||||
schar_T *chars = wp->w_float_config.border_chars;
|
||||
int *attrs = wp->w_float_config.border_attr;
|
||||
|
||||
|
||||
int *adj = wp->w_border_adj;
|
||||
int irow = wp->w_height_inner, icol = wp->w_width_inner;
|
||||
|
||||
@@ -5516,7 +5507,6 @@ static void win_redr_border(win_T *wp)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* Prepare for 'hlsearch' highlighting.
|
||||
*/
|
||||
@@ -5541,7 +5531,6 @@ static void end_search_hl(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Check if there should be a delay. Used before clearing or redrawing the
|
||||
/// screen or the command line.
|
||||
void check_for_delay(bool check_msg_scroll)
|
||||
@@ -5794,7 +5783,6 @@ void win_scroll_lines(win_T *wp, int row, int line_count)
|
||||
* screen changes, and in the meantime, everything still works.
|
||||
*/
|
||||
|
||||
|
||||
/// insert lines on the screen and move the existing lines down
|
||||
/// 'line_count' is the number of lines to be inserted.
|
||||
/// 'end' is the line after the scrolled part. Normally it is Rows.
|
||||
@@ -5896,7 +5884,6 @@ void grid_del_lines(ScreenGrid *grid, int row, int line_count, int end, int col,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Show the current mode and ruler.
|
||||
//
|
||||
// If clear_cmdline is true, clear the rest of the cmdline.
|
||||
@@ -6182,7 +6169,6 @@ void draw_tabline(void)
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
// Init TabPageIdxs[] to zero: Clicking outside of tabs has no effect.
|
||||
assert(Columns == tab_page_click_defs_size);
|
||||
stl_clear_click_defs(tab_page_click_defs, tab_page_click_defs_size);
|
||||
@@ -6231,7 +6217,6 @@ void draw_tabline(void)
|
||||
wp = tp->tp_firstwin;
|
||||
}
|
||||
|
||||
|
||||
if (tp->tp_topframe == topframe) {
|
||||
attr = win_hl_attr(cwp, HLF_TPS);
|
||||
}
|
||||
@@ -6253,7 +6238,6 @@ void draw_tabline(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (modified || wincount > 1) {
|
||||
if (wincount > 1) {
|
||||
vim_snprintf((char *)NameBuff, MAXPATHL, "%d", wincount);
|
||||
|
Reference in New Issue
Block a user