aboutsummaryrefslogtreecommitdiffstats
path: root/src/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-13 02:14:37 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2019-12-13 02:14:37 +0530
commit2f6a4dd8ee20bc7aec3af9339a4c236f8746ec30 (patch)
tree1f6289bf776ce8fcaa21a61aa127479d330f0cff /src/nnn.c
parentf73f79d5deff978bf2fac990dd3eae80207d29c5 (diff)
downloadnnn-2f6a4dd8ee20bc7aec3af9339a4c236f8746ec30.tar.gz
Minor edits
Diffstat (limited to 'src/nnn.c')
-rw-r--r--src/nnn.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/nnn.c b/src/nnn.c
index 8fcfceb..854bc87 100644
--- a/src/nnn.c
+++ b/src/nnn.c
@@ -4684,7 +4684,6 @@ nochange:
presel = 0;
break;
}
-
goto nochange;
case SEL_MFLTR: // fallthrough
case SEL_TOGGLEDOT: // fallthrough
@@ -4829,7 +4828,6 @@ nochange:
/* Save current */
if (ndents)
copycurname();
-
/* Repopulate as directory content may have changed */
goto begin;
}
@@ -4849,10 +4847,8 @@ nochange:
appendfpath(newpath, mkpath(path, dents[cur].name, newpath));
writesel(pselbuf, selbufpos - 1); /* Truncate NULL from end */
} else {
- --nselected;
selbufpos = lastappendpos;
-
- if (nselected) {
+ if (--nselected) {
updateselbuf(path, newpath);
writesel(pselbuf, selbufpos - 1); /* Truncate NULL from end */
} else
@@ -4940,7 +4936,6 @@ nochange:
presel = FILTER;
break;
}
-
goto nochange;
case SEL_SELEDIT:
r = editselection();
@@ -5292,7 +5287,6 @@ nochange:
/* Save current */
if (ndents)
copycurname();
-
/* Repopulate as directory content may have changed */
goto begin;
case SEL_ARCHIVEOPS: