mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 14:38:32 +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:
@@ -586,8 +586,8 @@ void f_histnr(typval_T *argvars, typval_T *rettv, EvalFuncData fptr)
|
||||
{
|
||||
const char *const histname = tv_get_string_chk(&argvars[0]);
|
||||
HistoryType i = histname == NULL
|
||||
? HIST_INVALID
|
||||
: get_histtype(histname, strlen(histname), false);
|
||||
? HIST_INVALID
|
||||
: get_histtype(histname, strlen(histname), false);
|
||||
if (i != HIST_INVALID) {
|
||||
i = get_history_idx(i);
|
||||
}
|
||||
|
Reference in New Issue
Block a user