mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 16:58:17 +00:00
refactor(uncrustify): set maximum number of consecutive newlines to 2 (#18695)
This commit is contained in:
@@ -147,7 +147,6 @@ void filemess(buf_T *buf, char_u *name, char_u *s, int attr)
|
||||
msg_scrolled_ign = false;
|
||||
}
|
||||
|
||||
|
||||
/// Read lines from file "fname" into the buffer after line "from".
|
||||
///
|
||||
/// 1. We allocate blocks with try_malloc, as big as possible.
|
||||
@@ -839,7 +838,6 @@ retry:
|
||||
fio_flags = get_fio_flags((char_u *)fenc);
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_ICONV
|
||||
// Try using iconv() if we can't convert internally.
|
||||
if (fio_flags == 0
|
||||
@@ -1293,7 +1291,6 @@ retry:
|
||||
size -= conv_restlen;
|
||||
}
|
||||
|
||||
|
||||
while (p > (uint8_t *)ptr) {
|
||||
if (fio_flags & FIO_LATIN1) {
|
||||
u8c = *--p;
|
||||
@@ -1995,7 +1992,6 @@ bool is_dev_fd_file(char_u *fname)
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
/// From the current line count and characters read after that, estimate the
|
||||
/// line number where we are now.
|
||||
/// Used for error messages that include a line number.
|
||||
@@ -2146,7 +2142,6 @@ static char_u *readfile_charconvert(char_u *fname, char_u *fenc, int *fdp)
|
||||
return tmpname;
|
||||
}
|
||||
|
||||
|
||||
/// Read marks for the current buffer from the ShaDa file, when we support
|
||||
/// buffer marks and the buffer has a name.
|
||||
static void check_marks_read(void)
|
||||
@@ -3053,7 +3048,6 @@ nobackup:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Default: write the file directly. May write to a temp file for
|
||||
// multi-byte conversion.
|
||||
wfname = fname;
|
||||
@@ -3089,7 +3083,6 @@ nobackup:
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (converted && wb_flags == 0) {
|
||||
#ifdef HAVE_ICONV
|
||||
// Use iconv() conversion when conversion is needed and it's not done
|
||||
@@ -4109,7 +4102,6 @@ static bool ucs2bytes(unsigned c, char_u **pp, int flags) FUNC_ATTR_NONNULL_ALL
|
||||
bool error = false;
|
||||
int cc;
|
||||
|
||||
|
||||
if (flags & FIO_UCS4) {
|
||||
if (flags & FIO_ENDIAN_L) {
|
||||
*p++ = c;
|
||||
@@ -4238,7 +4230,6 @@ static int get_fio_flags(const char_u *name)
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/// Check for a Unicode BOM (Byte Order Mark) at the start of p[size].
|
||||
/// "size" must be at least 2.
|
||||
///
|
||||
@@ -5493,7 +5484,6 @@ char_u *vim_tempname(void)
|
||||
return vim_strsave(template);
|
||||
}
|
||||
|
||||
|
||||
/// Tries matching a filename with a "pattern" ("prog" is NULL), or use the
|
||||
/// precompiled regprog "prog" ("pattern" is NULL). That avoids calling
|
||||
/// vim_regcomp() often.
|
||||
|
Reference in New Issue
Block a user