mirror of
https://github.com/jarun/nnn.git
synced 2024-11-17 16:39:14 +00:00
Add early check
This commit is contained in:
parent
7f84fbc8a0
commit
e7aec90889
|
@ -6577,10 +6577,10 @@ begin:
|
|||
}
|
||||
#endif
|
||||
|
||||
if (cfgsort[cfg.curctx] != '0') {
|
||||
if (order && cfgsort[cfg.curctx] != '0') {
|
||||
if (cfgsort[cfg.curctx] == 'z')
|
||||
set_sort_flags('c');
|
||||
if (order && (!cfgsort[cfg.curctx] || (cfgsort[cfg.curctx] == 'c'))
|
||||
if ((!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';
|
||||
|
|
Loading…
Reference in a new issue