aboutsummaryrefslogtreecommitdiffstats
path: root/noice.c
diff options
context:
space:
mode:
authorlostd <lostd@2f30.org>2015-07-13 00:56:51 +0100
committerlostd <lostd@2f30.org>2015-07-13 00:56:51 +0100
commit108996a802181e7acf3c562771bda8864c855e1d (patch)
treee24e1d930325ef3f3d26a0c3d20204910503573a /noice.c
parentdcde07637141064a39c79db93d47f6fe588a782d (diff)
downloadnoice-108996a802181e7acf3c562771bda8864c855e1d.tar.gz
Recall current item on refresh or sorting mode change
Diffstat (limited to 'noice.c')
-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();
Un proyecto texto-plano.xyz