aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/buffer.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/buffer.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/buffer.c')
-rw-r--r--src/nvim/buffer.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/nvim/buffer.c b/src/nvim/buffer.c
index 4b1aea5720..4c3f1308b3 100644
--- a/src/nvim/buffer.c
+++ b/src/nvim/buffer.c
@@ -1025,11 +1025,9 @@ char *do_bufdel(int command, char_u *arg, int addr_count, int start_bnr, int end
}
}
-
return errormsg;
}
-
/// Make the current buffer empty.
/// Used when it is wiped out and it's the last buffer.
static int empty_curbuf(int close_others, int forceit, int action)
@@ -1180,7 +1178,6 @@ int do_buffer(int action, int start, int dir, int count, int forceit)
return FAIL;
}
-
// delete buffer "buf" from memory and/or the list
if (unload) {
int forward;
@@ -1425,7 +1422,6 @@ int do_buffer(int action, int start, int dir, int count, int forceit)
return OK;
}
-
/// Set current buffer to "buf". Executes autocommands and closes current
/// buffer.
///
@@ -1585,7 +1581,6 @@ void enter_buffer(buf_T *buf)
scroll_cursor_halfway(false); // redisplay at correct position
}
-
// Change directories when the 'acd' option is set.
do_autochdir();
@@ -1932,7 +1927,6 @@ void free_buf_options(buf_T *buf, int free_p_ff)
clear_string_option(&buf->b_p_menc);
}
-
/// Get alternate file "n".
/// Set linenr to "lnum" or altfpos.lnum if "lnum" == 0.
/// Also set cursor column to altfpos.col if 'startofline' is not set.
@@ -2357,7 +2351,6 @@ int ExpandBufnames(char_u *pat, int *num_file, char_u ***file, int options)
return count == 0 ? FAIL : OK;
}
-
/// Check for a match on the file name for buffer "buf" with regprog "prog".
///
/// @param ignore_case When true, ignore case. Use 'fic' otherwise.
@@ -2491,7 +2484,6 @@ void buflist_setfpos(buf_T *const buf, win_T *const win, linenr_T lnum, colnr_T
}
}
-
/// Check that "wip" has 'diff' set and the diff is only for another tab page.
/// That's because a diff is local to a tab page.
static bool wininfo_other_tab_diff(wininfo_T *wip)
@@ -3113,7 +3105,6 @@ void col_print(char_u *buf, size_t buflen, int col, int vcol)
static char_u *lasttitle = NULL;
static char_u *lasticon = NULL;
-
/// Put the title name in the title bar and icon of the window.
void maketitle(void)
{
@@ -3331,7 +3322,6 @@ static bool value_change(char_u *str, char_u **last)
return false;
}
-
/// Set current window title
void resettitle(void)
{
@@ -3356,7 +3346,6 @@ typedef enum {
kNumBaseHexadecimal = 16,
} NumberBase;
-
/// Build a string from the status line items in "fmt".
/// Return length of string in screen cells.
///
@@ -3473,7 +3462,6 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, int use_san
// so any user-visible characters must occur before here.
char *out_end_p = (out + outlen) - 1;
-
// Proceed character by character through the statusline format string
// fmt_p is the current position in the input buffer
for (char *fmt_p = usefmt; *fmt_p;) {
@@ -3915,7 +3903,6 @@ int build_stl_str_hl(win_T *wp, char *out, size_t outlen, char *fmt, int use_san
}
}
-
// If the output of the expression needs to be evaluated
// replace the %{} block with the result of evaluation
if (reevaluate && str != NULL && *str != 0
@@ -4698,7 +4685,6 @@ void do_arg_all(int count, int forceit, int keep_tabs)
old_curwin = curwin;
old_curtab = curtab;
-
// Try closing all windows that are not in the argument list.
// Also close windows that are not full width;
// When 'hidden' or "forceit" set the buffer becomes hidden.
@@ -4947,7 +4933,6 @@ void ex_buffer_all(exarg_T *eap)
setpcmark();
-
// Close superfluous windows (two windows for the same buffer).
// Also close windows that are not full-width.
if (had_tab > 0) {
@@ -5098,7 +5083,6 @@ void ex_buffer_all(exarg_T *eap)
}
}
-
/// do_modelines() - process mode lines for the current file
///
/// @param flags