mirror of
https://github.com/neovim/neovim.git
synced 2025-09-27 21:48:35 +00:00
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
This commit is contained in:
@@ -57,7 +57,6 @@ void ex_runtime(exarg_T *eap)
|
||||
source_runtime(arg, flags);
|
||||
}
|
||||
|
||||
|
||||
static void source_callback(char *fname, void *cookie)
|
||||
{
|
||||
(void)do_source(fname, false, DOSO_NONE);
|
||||
@@ -160,7 +159,6 @@ int do_in_path(char_u *path, char *name, int flags, DoInRuntimepathCB callback,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return did_one ? OK : FAIL;
|
||||
}
|
||||
|
||||
@@ -202,7 +200,6 @@ void runtime_search_path_unref(RuntimeSearchPath path, int *ref)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Find the file "name" in all directories in "path" and invoke
|
||||
/// "callback(fname, cookie)".
|
||||
/// "name" can contain wildcards.
|
||||
@@ -524,7 +521,6 @@ RuntimeSearchPath runtime_search_path_build(void)
|
||||
map_put(String, handle_T)(&pack_used, the_entry, 0);
|
||||
}
|
||||
|
||||
|
||||
char *rtp_entry;
|
||||
for (rtp_entry = (char *)p_rtp; *rtp_entry != NUL;) {
|
||||
char *cur_entry = rtp_entry;
|
||||
@@ -612,7 +608,6 @@ void runtime_search_path_validate(void)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Just like do_in_path_and_pp(), using 'runtimepath' for "path".
|
||||
int do_in_runtimepath(char *name, int flags, DoInRuntimepathCB callback, void *cookie)
|
||||
{
|
||||
@@ -884,7 +879,6 @@ static void add_opt_pack_plugin(char *fname, void *cookie)
|
||||
add_pack_plugin(true, (char_u *)fname, cookie);
|
||||
}
|
||||
|
||||
|
||||
/// Add all packages in the "start" directory to 'runtimepath'.
|
||||
void add_pack_start_dirs(void)
|
||||
{
|
||||
@@ -918,7 +912,6 @@ static void add_pack_start_dir(char *fname, void *cookie)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// Load plugins from all packages in the "start" directory.
|
||||
void load_start_packages(void)
|
||||
{
|
||||
@@ -1049,7 +1042,6 @@ static inline size_t compute_double_env_sep_len(const char *const val, const siz
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
#define NVIM_SIZE (sizeof("nvim") - 1)
|
||||
/// Add directories to a ENV_SEPCHAR-separated array from a colon-separated one
|
||||
///
|
||||
|
Reference in New Issue
Block a user