nnn

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

commit 064f5ea998a6512d061d1bf62d595f2fe4215065
parent 9526fb76127b63f1c3d2d0fb3717e5dc13905df8
Author: Arun Prakash Jana <engineerarun@gmail.com>
Date:   Thu, 15 Jul 2021 11:45:32 +0530

Show msg for both invert and select all

Diffstat:
Msrc/nnn.c | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/nnn.c b/src/nnn.c @@ -1569,11 +1569,6 @@ static void invertselbuf(char *path) selmark *marked = malloc(nselected * sizeof(selmark)); bool scan = FALSE; - if (nselected > LARGESEL) { - printmsg("processing..."); - refresh(); - } - /* First pass: inversion */ for (int i = 0; i < ndents; ++i) { dentp = &pdents[i]; @@ -7084,6 +7079,11 @@ nochange: scanselforpath(path); } + if ((nselected > LARGESEL) || (nselected && (ndents > LARGESEL))) { + printmsg("processing..."); + refresh(); + } + ((sel == SEL_SELINV) && findselpos) ? invertselbuf(path) : addtoselbuf(path, selstartid, selendid);