diff options
Diffstat (limited to 'ui-curses.c')
| -rw-r--r-- | ui-curses.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/ui-curses.c b/ui-curses.c index ef397c0..30cf516 100644 --- a/ui-curses.c +++ b/ui-curses.c @@ -1000,8 +1000,14 @@ static bool ui_init(Ui *ui, Vis *vis) { UiCurses *uic = (UiCurses*)ui; uic->vis = vis; const char *theme = getenv("VIS_THEME"); - if (!theme || !theme[0] || !vis_theme_load(vis, theme)) - vis_theme_load(vis, COLORS <= 16 ? "default-16" : "default-256"); + if (theme && theme[0]) { + if (!vis_theme_load(vis, theme)) + vis_info_show(vis, "Warning: failed to load theme `%s'", theme); + } else { + theme = COLORS <= 16 ? "default-16" : "default-256"; + if (!vis_theme_load(vis, theme)) + vis_info_show(vis, "Warning: failed to load theme `%s' set $VIS_PATH", theme); + } return true; } |
