mirror of
https://github.com/neovim/neovim.git
synced 2025-09-13 23:08:16 +00:00
refactor: enable formatting for ternaries
This requires removing the "Inner expression should be aligned" rule from clint as it prevents essentially any formatting regarding ternary operators.
This commit is contained in:
@@ -821,7 +821,7 @@ retry:
|
||||
}
|
||||
|
||||
state->growbufsiz = (2 * state->growbufsiz < LINE_MAXLEN)
|
||||
? 2 * state->growbufsiz : LINE_MAXLEN;
|
||||
? 2 * state->growbufsiz : LINE_MAXLEN;
|
||||
state->growbuf = xrealloc(state->growbuf, state->growbufsiz);
|
||||
}
|
||||
|
||||
@@ -858,7 +858,7 @@ retry:
|
||||
state->linebuf = line;
|
||||
state->growbuf = line;
|
||||
state->growbufsiz = state->linelen < LINE_MAXLEN
|
||||
? state->linelen : LINE_MAXLEN;
|
||||
? state->linelen : LINE_MAXLEN;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user