Remember current entry accross filter changes

This commit is contained in:
lostd 2014-11-26 17:42:57 +02:00
parent 55d45dd39d
commit 15a7a78264

View file

@ -695,6 +695,8 @@ nochange:
filter = tmp; filter = tmp;
filter_re = re; filter_re = re;
DPRINTF_S(filter); DPRINTF_S(filter);
/* Save current */
oldpath = makepath(path, dents[cur].name);
goto out; goto out;
case SEL_NEXT: case SEL_NEXT:
if (cur < n - 1) if (cur < n - 1)