From b75256fffde3d80e8afb4529dbe28b7de68dd45f Mon Sep 17 00:00:00 2001 From: James Booth Date: Sun, 25 Nov 2012 03:26:52 +0000 Subject: [PATCH] Fixed /prefs output when no theme chosen --- src/windows.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/windows.c b/src/windows.c index 70a2d310..db444fa5 100644 --- a/src/windows.c +++ b/src/windows.c @@ -1043,7 +1043,12 @@ cons_prefs(void) else cons_show("Terminal flash : OFF"); - cons_show("Theme : %s", prefs_get_theme()); + gchar *theme = prefs_get_theme(); + if (theme == NULL) { + cons_show("Theme : default"); + } else { + cons_show("Theme : %s", theme); + } if (prefs_get_intype()) cons_show("Show typing : ON");