mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 03:08:27 +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:
@@ -65,8 +65,8 @@
|
||||
#include <stdbool.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "nvim/api/private/helpers.h"
|
||||
#include "nvim/api/extmark.h"
|
||||
#include "nvim/api/private/helpers.h"
|
||||
#include "nvim/api/vim.h"
|
||||
#include "nvim/arabic.h"
|
||||
#include "nvim/ascii.h"
|
||||
@@ -1952,7 +1952,7 @@ static size_t fill_foldcolumn(char_u *p, win_T *wp, foldinfo_T foldinfo, linenr_
|
||||
first_level = 1;
|
||||
}
|
||||
|
||||
for (i = 0; i < MIN(fdc, level); i++) {
|
||||
for (i = 0; i < MIN(fdc, level); i++) {
|
||||
if (foldinfo.fi_lnum == lnum
|
||||
&& first_level + i >= foldinfo.fi_low_level) {
|
||||
symbol = wp->w_p_fcs_chars.foldopen;
|
||||
@@ -6081,7 +6081,7 @@ static void prepare_search_hl(win_T *wp, linenr_T lnum)
|
||||
|| (cur != NULL && pos_inprogress))) {
|
||||
next_search_hl(wp, shl, shl->first_lnum, (colnr_T)n,
|
||||
shl == &search_hl ? NULL : cur);
|
||||
pos_inprogress = !(cur == NULL || cur->pos.cur == 0);
|
||||
pos_inprogress = !(cur == NULL || cur->pos.cur == 0);
|
||||
if (shl->lnum != 0) {
|
||||
shl->first_lnum = shl->lnum
|
||||
+ shl->rm.endpos[0].lnum
|
||||
@@ -6725,7 +6725,6 @@ bool grid_invalid_row(ScreenGrid *grid, int row)
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// Copy part of a grid line for vertically split window.
|
||||
static void linecopy(ScreenGrid *grid, int to, int from, int col, int width)
|
||||
{
|
||||
|
Reference in New Issue
Block a user