aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/mbyte.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2021-11-19 20:21:53 +0100
committerGitHub <noreply@github.com>2021-11-19 14:21:53 -0500
commit725cbe7d414f609e769081276f2a034e32a4337b (patch)
treeda4a7175d450e582fab94480b59ea54454cb0078 /src/nvim/mbyte.c
parent9ec4417afc072533ed2c6924323e9d885c52f6fe (diff)
downloadrneovim-725cbe7d414f609e769081276f2a034e32a4337b.tar.gz
rneovim-725cbe7d414f609e769081276f2a034e32a4337b.tar.bz2
rneovim-725cbe7d414f609e769081276f2a034e32a4337b.zip
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
Diffstat (limited to 'src/nvim/mbyte.c')
-rw-r--r--src/nvim/mbyte.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nvim/mbyte.c b/src/nvim/mbyte.c
index 12460646ed..42117bc762 100644
--- a/src/nvim/mbyte.c
+++ b/src/nvim/mbyte.c
@@ -764,7 +764,7 @@ int utfc_ptr2char(const char_u *p, int *pcc)
&& p[len] >= 0x80
&& utf_composinglike(p, p + len)) {
cc = utf_ptr2char(p + len);
- for (;; ) {
+ for (;;) {
pcc[i++] = cc;
if (i == MAX_MCO) {
break;
@@ -1322,7 +1322,7 @@ static int utf_strnicmp(const char_u *s1, const char_u *s2, size_t n1, size_t n2
int c1, c2, cdiff;
char_u buffer[6];
- for (;; ) {
+ for (;;) {
c1 = utf_safe_read_char_adv(&s1, &n1);
c2 = utf_safe_read_char_adv(&s2, &n2);
@@ -1933,7 +1933,7 @@ void utf_find_illegal(void)
}
curwin->w_cursor.coladd = 0;
- for (;; ) {
+ for (;;) {
p = get_cursor_pos_ptr();
if (vimconv.vc_type != CONV_NONE) {
xfree(tofree);
@@ -2363,7 +2363,7 @@ static char_u *iconv_string(const vimconv_T *const vcp, char_u *str, size_t slen
from = (char *)str;
fromlen = slen;
- for (;; ) {
+ for (;;) {
if (len == 0 || ICONV_ERRNO == ICONV_E2BIG) {
// Allocate enough room for most conversions. When re-allocating
// increase the buffer size.