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