nnn

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

commit 9df7e5f03e60bceb27ebaa91ab7cefe80d05c43a
parent 359d7bc29c9555b18bad16cbb78bd44875abc9dc
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu,  9 Sep 2021 09:05:45 +0530

Reformat checks

Diffstat:
Msrc/nnn.c | 17+++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/src/nnn.c b/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);