From: Arun Prakash Jana Date: Thu, 15 Jul 2021 06:15:32 +0000 (+0530) Subject: Show msg for both invert and select all X-Git-Tag: v4.2~25 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=064f5ea998a6512d061d1bf62d595f2fe4215065;p=nnn.git Show msg for both invert and select all --- diff --git a/src/nnn.c b/src/nnn.c index a38d9e32..50200422 100644 --- 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);