Reformat checks

This commit is contained in:
Arun Prakash Jana 2021-09-09 09:05:45 +05:30
parent 359d7bc29c
commit 9df7e5f03e
No known key found for this signature in database
GPG Key ID: A75979F35C080412
1 changed files with 9 additions and 8 deletions

View File

@ -6577,14 +6577,15 @@ begin:
}
#endif
if (cfgsort[cfg.curctx] == 'z')
set_sort_flags('c');
if (order && (!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
&& ((r = get_kv_key(order, path, maxorder, NNN_ORDER)) > 0)) {
set_sort_flags(r);
cfgsort[cfg.curctx] = 'z';
}
if (cfgsort[cfg.curctx] == '0')
if (cfgsort[cfg.curctx] != '0') {
if (cfgsort[cfg.curctx] == 'z')
set_sort_flags('c');
if (order && (!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
&& ((r = get_kv_key(order, path, maxorder, NNN_ORDER)) > 0)) {
set_sort_flags(r);
cfgsort[cfg.curctx] = 'z';
}
} else
cfgsort[cfg.curctx] = cfgsort[CTX_MAX];
populate(path, lastname);