mirror of
https://github.com/neovim/neovim.git
synced 2025-09-23 19:48:32 +00:00
refactor: saner options for uncrustify (#16204)
* sp_enum_after_assign = force * sp_brace_typedef = force * nl_do_brace = remove * sp_do_brace_open = force * sp_brace_close_while = force * sp_before_semi = remove * sp_before_semi_for = remove * sp_before_semi_for_empty = remove * sp_between_semi_for_empty = remove * sp_after_semi_for_empty = remove * sp_before_square = remove * sp_before_squares = remove * sp_inside_square = remove * sp_inside_fparens = remove * sp_inside_fparen = remove * sp_inside_tparen = remove * sp_after_tparen_close = remove * sp_return_paren = force * pos_bool = lead * sp_pp_concat = remove * sp_pp_stringify = remove * fixup: disable formatting for the INIT section
This commit is contained in:
@@ -570,8 +570,8 @@ static bool normal_need_additional_char(NormalState *s)
|
||||
//
|
||||
// TODO(tarruda): Visual state needs to be refactored into a
|
||||
// separate state that "inherits" from normal state.
|
||||
|| ((cmdchar == 'a' || cmdchar == 'i') &&
|
||||
(pending_op || VIsual_active)));
|
||||
|| ((cmdchar == 'a' || cmdchar == 'i')
|
||||
&& (pending_op || VIsual_active)));
|
||||
}
|
||||
|
||||
static bool normal_need_redraw_mode_message(NormalState *s)
|
||||
@@ -2283,7 +2283,7 @@ bool do_mouse(oparg_T *oap, int c, int dir, long count, bool fixindent)
|
||||
|
||||
save_cursor = curwin->w_cursor;
|
||||
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
which_button = get_mouse_button(KEY2TERMCAP1(c), &is_click, &is_drag);
|
||||
if (is_drag) {
|
||||
/* If the next character is the same mouse event then use that
|
||||
@@ -3928,7 +3928,7 @@ bool find_decl(char_u *ptr, size_t len, bool locally, bool thisblock, int flags_
|
||||
|
||||
// Search forward for the identifier, ignore comment lines.
|
||||
clearpos(&found_pos);
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
t = searchit(curwin, curbuf, &curwin->w_cursor, NULL, FORWARD,
|
||||
pat, 1L, searchflags, RE_LAST, NULL);
|
||||
if (curwin->w_cursor.lnum >= old_pos.lnum) {
|
||||
@@ -4307,7 +4307,7 @@ static void nv_zet(cmdarg_T *cap)
|
||||
return;
|
||||
}
|
||||
n = nchar - '0';
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
no_mapping++;
|
||||
nchar = plain_vgetc();
|
||||
LANGMAP_ADJUST(nchar, true);
|
||||
@@ -5341,8 +5341,8 @@ static void nv_right(cmdarg_T *cap)
|
||||
|
||||
for (n = cap->count1; n > 0; --n) {
|
||||
if ((!PAST_LINE && oneright() == false)
|
||||
|| (PAST_LINE &&
|
||||
*get_cursor_pos_ptr() == NUL)) {
|
||||
|| (PAST_LINE
|
||||
&& *get_cursor_pos_ptr() == NUL)) {
|
||||
// <Space> wraps to next line if 'whichwrap' has 's'.
|
||||
// 'l' wraps to next line if 'whichwrap' has 'l'.
|
||||
// CURS_RIGHT wraps to next line if 'whichwrap' has '>'.
|
||||
@@ -5838,7 +5838,7 @@ static void nv_brackets(cmdarg_T *cap)
|
||||
pos = NULL;
|
||||
}
|
||||
while (n > 0) {
|
||||
for (;; ) {
|
||||
for (;;) {
|
||||
if ((findc == '{' ? dec_cursor() : inc_cursor()) < 0) {
|
||||
// if not found anything, that's an error
|
||||
if (pos == NULL) {
|
||||
@@ -7688,8 +7688,8 @@ static void adjust_cursor(oparg_T *oap)
|
||||
// - 'virtualedit' is not "all" and not "onemore".
|
||||
if (curwin->w_cursor.col > 0 && gchar_cursor() == NUL
|
||||
&& (!VIsual_active || *p_sel == 'o')
|
||||
&& !virtual_active() &&
|
||||
(ve_flags & VE_ONEMORE) == 0) {
|
||||
&& !virtual_active()
|
||||
&& (ve_flags & VE_ONEMORE) == 0) {
|
||||
curwin->w_cursor.col--;
|
||||
// prevent cursor from moving on the trail byte
|
||||
mb_adjust_cursor();
|
||||
|
Reference in New Issue
Block a user