Index: apps/tree.c =================================================================== --- apps/tree.c (revision 21309) +++ apps/tree.c (working copy) @@ -904,6 +904,7 @@ if (dirfilter >= NUM_FILTER_MODES) { static struct tree_context backup; + static char current[MAX_PATH]; int last_context; backup = tc; @@ -913,6 +914,27 @@ start_wps = false; last_context = curr_context; +#ifdef HAVE_LCD_BITMAP + /* Center on the currently loaded font when browsing fonts */ + if (dirfilter == SHOW_FONT) + { + snprintf(current, sizeof(current), FONT_DIR "/%s.fnt", + global_settings.font_file); + } +#endif + /* Center on the currently loaded language when browsing languages. + Doesn't work when no language is set. */ + else if (dirfilter == SHOW_LNG) + { + snprintf(current, sizeof(current), LANG_DIR "/%s.lng", + global_settings.lang_file); + } + + if (current[0] == '/') + { + set_current_file(current); + } + ret_val = dirbrowse(); tc = backup; curr_context = last_context;