From: lostd Date: Sun, 12 Jul 2015 23:56:51 +0000 (+0100) Subject: Recall current item on refresh or sorting mode change X-Git-Tag: v1.0~92^2~54 X-Git-Url: http://www.git.stargrave.org/?a=commitdiff_plain;h=108996a802181e7acf3c562771bda8864c855e1d;p=nnn.git Recall current item on refresh or sorting mode change --- diff --git a/noice.c b/noice.c index 228aedfa..ba529d6c 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();