summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--source/widgets/textbox.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source/widgets/textbox.c b/source/widgets/textbox.c
index f595238c..a5112755 100644
--- a/source/widgets/textbox.c
+++ b/source/widgets/textbox.c
@@ -188,8 +188,10 @@ textbox* textbox_create ( widget *parent, WidgetType type, const char *name, Tex
}
// Allow overriding of markup.
- if ( rofi_theme_get_boolean ( WIDGET ( tb ), "markup", FALSE) ) {
+ if ( rofi_theme_get_boolean ( WIDGET ( tb ), "markup", (tb->flags&TB_MARKUP) == TB_MARKUP ) ) {
tb->flags |= TB_MARKUP;
+ } else {
+ tb->flags &= (~TB_MARKUP);
}
const char *txt = rofi_theme_get_string ( WIDGET ( tb ), "str", text );