From c1f63350f481cd8929137a56b14bdf94f9fadb6f Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Sun, 26 Mar 2023 23:37:44 +0200 Subject: [PATCH] Fix to pointless or's. --- source/widgets/listview.c | 3 +-- source/xrmoptions.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/source/widgets/listview.c b/source/widgets/listview.c index 05f6f273..09a8e542 100644 --- a/source/widgets/listview.c +++ b/source/widgets/listview.c @@ -168,14 +168,13 @@ static void listview_set_state(_listview_row r, TextBoxFontType tbft) { } static void listview_add_widget(listview *lv, _listview_row *row, widget *wid, const char *label) { - TextboxFlags flags = 0; if (strcasecmp(label, "element-icon") == 0) { row->icon = icon_create(WIDGET(wid), "element-icon"); box_add((box *)wid, WIDGET(row->icon), FALSE); } else if (strcasecmp(label, "element-text") == 0) { row->textbox = textbox_create(WIDGET(wid), WIDGET_TYPE_TEXTBOX_TEXT, "element-text", - TB_AUTOHEIGHT | flags, NORMAL, "DDD", 0, 0); + TB_AUTOHEIGHT , NORMAL, "DDD", 0, 0); textbox_set_ellipsize(row->textbox, lv->emode); box_add((box *)wid, WIDGET(row->textbox), TRUE); } else if (strcasecmp(label, "element-index") == 0) { diff --git a/source/xrmoptions.c b/source/xrmoptions.c index 319b899f..34d2fff5 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -357,7 +357,7 @@ static XrmOption xrmOptions[] = { {.str = &config.theme}, NULL, "New style theme file", - CONFIG_DEFAULT | CONFIG_NO_DISPLAY}, + CONFIG_NO_DISPLAY}, {xrm_Number, "max-history-size", {.num = &config.max_history_size},