mirror of
https://github.com/neovim/neovim.git
synced 2025-09-10 21:38:19 +00:00
refactor: saner options for uncrustify #16196
* refactor: general good option changes sp_deref = remove sp_not = remove sp_inv = remove sp_inside_paren_cast = remove mod_remove_duplicate_include = true sp_after_semi = add sp_after_semi_for = force sp_sizeof_paren = remove nl_return_expr = remove nl_else_brace = remove nl_else_if = remove * refactor: mod_remove_extra_semicolon = true * refactor: nl_max = 3 * refactor: sp_bool = force * refactor: sp_compare = force * refactor: sp_inside_paren = remove * refactor: sp_paren_paren = remove * refactor: sp_inside_sparen = remove * refactor: sp_before_sparen = force * refactor: sp_sign = remove * refactor: sp_addr = remove * refactor: sp_member = remove * refactor: nl_struct_brace = remove * refactor: nl_before_if_closing_paren = remove * refactor: nl_fdef_brace = force * refactor: sp_paren_comma = force * refactor: mod_full_brace_do = add
This commit is contained in:
@@ -738,7 +738,8 @@ static void buf_win_common(typval_T *argvars, typval_T *rettv, bool get_nr)
|
||||
}
|
||||
|
||||
/// "bufwinid(nr)" function
|
||||
static void f_bufwinid(typval_T *argvars, typval_T *rettv, FunPtr fptr) {
|
||||
static void f_bufwinid(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
{
|
||||
buf_win_common(argvars, rettv, false);
|
||||
}
|
||||
|
||||
@@ -1812,7 +1813,7 @@ static void f_deletebufline(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
if (wp->w_buffer == buf) {
|
||||
if (wp->w_cursor.lnum > last) {
|
||||
wp->w_cursor.lnum -= count;
|
||||
} else if (wp->w_cursor.lnum> first) {
|
||||
} else if (wp->w_cursor.lnum > first) {
|
||||
wp->w_cursor.lnum = first;
|
||||
}
|
||||
if (wp->w_cursor.lnum > wp->w_buffer->b_ml.ml_line_count) {
|
||||
@@ -4620,10 +4621,9 @@ static bool has_wsl(void)
|
||||
static TriState has_wsl = kNone;
|
||||
if (has_wsl == kNone) {
|
||||
Error err = ERROR_INIT;
|
||||
Object o = nlua_exec(
|
||||
STATIC_CSTR_AS_STRING("return vim.loop.os_uname()['release']:lower()"
|
||||
":match('microsoft') and true or false"),
|
||||
(Array)ARRAY_DICT_INIT, &err);
|
||||
Object o = nlua_exec(STATIC_CSTR_AS_STRING("return vim.loop.os_uname()['release']:lower()"
|
||||
":match('microsoft') and true or false"),
|
||||
(Array)ARRAY_DICT_INIT, &err);
|
||||
assert(!ERROR_SET(&err));
|
||||
assert(o.type == kObjectTypeBoolean);
|
||||
has_wsl = o.data.boolean ? kTrue : kFalse;
|
||||
@@ -11245,7 +11245,6 @@ static void f_tabpagenr(typval_T *argvars, typval_T *rettv, FunPtr fptr)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* Common code for tabpagewinnr() and winnr().
|
||||
*/
|
||||
|
Reference in New Issue
Block a user