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; goto begin;
case SEL_MTIME: case SEL_MTIME:
mtimeorder = !mtimeorder; mtimeorder = !mtimeorder;
/* Save current */
if (n > 0)
oldpath = makepath(path, dents[cur].name);
goto begin; goto begin;
case SEL_REDRAW: case SEL_REDRAW:
/* Save current */
if (n > 0)
oldpath = makepath(path, dents[cur].name);
goto begin; goto begin;
case SEL_RUN: case SEL_RUN:
exitcurses(); exitcurses();