aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/ops.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-05-25 20:31:14 +0200
committerGitHub <noreply@github.com>2022-05-25 12:31:14 -0600
commit9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e (patch)
tree83e044109d61242150b8c98897e179416025f576 /src/nvim/ops.c
parent8c4e62351f67dd6a44f67f3a2b6f3a3551acf475 (diff)
downloadrneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.gz
rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.tar.bz2
rneovim-9fec6dc9a25b5cf9c9a444ac2bd0728e8af3229e.zip
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
Diffstat (limited to 'src/nvim/ops.c')
-rw-r--r--src/nvim/ops.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/nvim/ops.c b/src/nvim/ops.c
index 8ea55579bb..83e2a85112 100644
--- a/src/nvim/ops.c
+++ b/src/nvim/ops.c
@@ -453,7 +453,6 @@ static void shift_block(oparg_T *oap, int amount)
non_white_col += incr;
}
-
const colnr_T block_space_width = non_white_col - oap->start_vcol;
// We will shift by "total" or "block_space_width", whichever is less.
const colnr_T shift_amount = block_space_width < total
@@ -2105,7 +2104,6 @@ static int op_replace(oparg_T *oap, int c)
return OK;
}
-
/*
* Handle the (non-standard vi) tilde operator. Also for "gu", "gU" and "g?".
*/
@@ -2629,7 +2627,6 @@ void clear_registers(void)
#endif
-
/// Free contents of yankreg `reg`.
/// Called for normal freeing and in case of error.
/// `reg` must not be NULL (but `reg->y_array` might be)
@@ -3853,7 +3850,6 @@ void ex_display(exarg_T *eap)
continue; // did not ask for this register
}
-
if (i == -1) {
if (y_previous != NULL) {
yb = y_previous;
@@ -5436,7 +5432,6 @@ void format_reg_type(MotionType reg_type, colnr_T reg_width, char *buf, size_t b
}
}
-
/// When `flags` has `kGRegList` return a list with text `s`.
/// Otherwise just return `s`.
///
@@ -5817,7 +5812,6 @@ void clear_oparg(oparg_T *oap)
memset(oap, 0, sizeof(oparg_T));
}
-
/*
* Count the number of bytes, characters and "words" in a line.
*
@@ -6286,7 +6280,6 @@ void do_pending_operator(cmdarg_T *cap, int old_col, bool gui_yank)
int restart_edit_save;
int lbr_saved = curwin->w_p_lbr;
-
// The visual area is remembered for redo
static int redo_VIsual_mode = NUL; // 'v', 'V', or Ctrl-V
static linenr_T redo_VIsual_line_count; // number of lines
@@ -7276,7 +7269,6 @@ void restore_batch_count(int save_count)
}
}
-
/// Check whether register is empty
static inline bool reg_empty(const yankreg_T *const reg)
FUNC_ATTR_PURE