diff options
Diffstat (limited to 'apps/tree.c')
-rw-r--r-- | apps/tree.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/tree.c b/apps/tree.c index cb7c033b6f..70f2704fae 100644 --- a/apps/tree.c +++ b/apps/tree.c @@ -766,8 +766,13 @@ static int dirbrowse(void) if (enter_shortcuts_menu && *tc.dirfilter < NUM_FILTER_MODES) { + int last_screen = global_status.last_screen; global_status.last_screen = GO_TO_SHORTCUTMENU; - return do_shortcut_menu(NULL); + int shortcut_ret = do_shortcut_menu(NULL); + if (shortcut_ret == GO_TO_PREVIOUS) + global_status.last_screen = last_screen; + else + return shortcut_ret; } restore = true; |