aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--noice.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/noice.c b/noice.c
index 228aedf..ba529d6 100644
--- a/noice.c
+++ b/noice.c
@@ -858,8 +858,14 @@ moretyping:
goto begin;
case SEL_MTIME:
mtimeorder = !mtimeorder;
+ /* Save current */
+ if (n > 0)
+ oldpath = makepath(path, dents[cur].name);
goto begin;
case SEL_REDRAW:
+ /* Save current */
+ if (n > 0)
+ oldpath = makepath(path, dents[cur].name);
goto begin;
case SEL_RUN:
exitcurses();