1
1
mirror of https://github.com/jarun/nnn.git synced 2024-11-11 14:44:20 +03:00

Recall current item on refresh or sorting mode change

This commit is contained in:
lostd 2015-07-13 00:56:51 +01:00
parent dcde076371
commit 108996a802

View File

@ -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();