mirror of
https://github.com/jarun/nnn.git
synced 2025-03-12 17:54:04 +00:00
Reformat checks
This commit is contained in:
parent
359d7bc29c
commit
9df7e5f03e
1 changed files with 9 additions and 8 deletions
17
src/nnn.c
17
src/nnn.c
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue