diff options
Diffstat (limited to 'apps')
-rw-r--r-- | apps/tree.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/tree.c b/apps/tree.c index 18758e3570..b42df0587a 100644 --- a/apps/tree.c +++ b/apps/tree.c | |||
@@ -1374,6 +1374,8 @@ static bool dirbrowse(char *root, int *dirfilter) | |||
1374 | if (restore || reload_dir) { | 1374 | if (restore || reload_dir) { |
1375 | /* restore display */ | 1375 | /* restore display */ |
1376 | 1376 | ||
1377 | tree_max_on_screen = recalc_screen_height(); | ||
1378 | |||
1377 | /* We need to adjust if the number of lines on screen have | 1379 | /* We need to adjust if the number of lines on screen have |
1378 | changed because of a status bar change */ | 1380 | changed because of a status bar change */ |
1379 | if(CURSOR_Y+LINE_Y+dircursor>tree_max_on_screen) { | 1381 | if(CURSOR_Y+LINE_Y+dircursor>tree_max_on_screen) { |