summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/tree.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/tree.c b/apps/tree.c
index ec71b5c5f3..7a4a49278b 100644
--- a/apps/tree.c
+++ b/apps/tree.c
@@ -240,8 +240,9 @@ bool dirbrowse(char *root)
240 return -1; /* root is not a directory */ 240 return -1; /* root is not a directory */
241 241
242 lcd_puts(0, dircursor, CURSOR_CHAR); 242 lcd_puts(0, dircursor, CURSOR_CHAR);
243 lcd_puts_scroll(LINE_X, LINE_Y+dircursor, 243 if ( numentries )
244 dircacheptr[start+dircursor]->name); 244 lcd_puts_scroll(LINE_X, LINE_Y+dircursor,
245 dircacheptr[start+dircursor]->name);
245 lcd_update(); 246 lcd_update();
246 247
247 while(1) { 248 while(1) {
@@ -357,8 +358,9 @@ bool dirbrowse(char *root)
357 } 358 }
358 359
359 lcd_stop_scroll(); 360 lcd_stop_scroll();
360 lcd_puts_scroll(LINE_X, LINE_Y+dircursor, 361 if ( numentries )
361 dircacheptr[start+dircursor]->name); 362 lcd_puts_scroll(LINE_X, LINE_Y+dircursor,
363 dircacheptr[start+dircursor]->name);
362 364
363 lcd_update(); 365 lcd_update();
364 } 366 }