mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
This commit is contained in:
@@ -101,7 +101,6 @@
|
||||
#define OPT_BUF(x) (idopt_T)(PV_BUF + (int)(x))
|
||||
#define OPT_BOTH(x) (idopt_T)(PV_BOTH + (int)(x))
|
||||
|
||||
|
||||
// WV_ and BV_ values get typecasted to this for the "indir" field
|
||||
typedef enum {
|
||||
PV_NONE = 0,
|
||||
@@ -211,7 +210,6 @@ typedef struct vimoption {
|
||||
LastSet last_set; // script in which the option was last set
|
||||
} vimoption_T;
|
||||
|
||||
|
||||
/*
|
||||
* Flags
|
||||
*/
|
||||
@@ -519,7 +517,6 @@ void set_init_1(bool clean_arg)
|
||||
*/
|
||||
set_options_default(0);
|
||||
|
||||
|
||||
curbuf->b_p_initialized = true;
|
||||
curbuf->b_p_ar = -1; // no local 'autoread' value
|
||||
curbuf->b_p_ul = NO_LOCAL_UNDOLEVEL;
|
||||
@@ -778,7 +775,6 @@ void free_all_options(void)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/// Initialize the options, part two: After getting Rows and Columns.
|
||||
void set_init_2(bool headless)
|
||||
{
|
||||
@@ -909,7 +905,6 @@ void set_helplang_default(const char *lang)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// 'title' and 'icon' only default to true if they have not been set or reset
|
||||
/// in .vimrc and we can read the old value.
|
||||
/// When 'title' and 'icon' have been reset in .vimrc, we won't even check if
|
||||
@@ -2168,7 +2163,6 @@ static uint32_t *insecure_flag(win_T *const wp, int opt_idx, int opt_flags)
|
||||
return &options[opt_idx].flags;
|
||||
}
|
||||
|
||||
|
||||
/// Redraw the window title and/or tab page text later.
|
||||
static void redraw_titles(void)
|
||||
{
|
||||
@@ -3967,7 +3961,6 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va
|
||||
// Remember where the option was set.
|
||||
set_option_sctx_idx(opt_idx, opt_flags, current_sctx);
|
||||
|
||||
|
||||
// May set global value for local option.
|
||||
if ((opt_flags & (OPT_LOCAL | OPT_GLOBAL)) == 0) {
|
||||
*(int *)get_varp_scope(&(options[opt_idx]), OPT_GLOBAL) = value;
|
||||
@@ -4195,7 +4188,6 @@ static char *set_bool_option(const int opt_idx, char_u *const varp, const int va
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* End of handling side effects for bool options.
|
||||
*/
|
||||
@@ -4565,7 +4557,6 @@ static char *set_num_option(int opt_idx, char_u *varp, long value, char *errbuf,
|
||||
check_blending(curwin);
|
||||
}
|
||||
|
||||
|
||||
// Check the (new) bounds for Rows and Columns here.
|
||||
if (p_lines < min_rows() && full_screen) {
|
||||
if (errbuf != NULL) {
|
||||
|
Reference in New Issue
Block a user