summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
Diffstat (limited to 'source')
-rw-r--r--source/view.c2
-rw-r--r--source/xrmoptions.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/view.c b/source/view.c
index 30a6da14..a8d027b7 100644
--- a/source/view.c
+++ b/source/view.c
@@ -698,7 +698,7 @@ static void update_callback ( textbox *t, unsigned int index, void *udata, TextB
// Move into list view.
textbox_text ( t, text );
- if ( state->tokens ) {
+ if ( state->tokens && config.show_match ) {
PangoAttrList *list = textbox_get_pango_attributes ( t );
if ( list != NULL ) {
pango_attr_list_ref ( list );
diff --git a/source/xrmoptions.c b/source/xrmoptions.c
index 6d69e1d9..c176d6df 100644
--- a/source/xrmoptions.c
+++ b/source/xrmoptions.c
@@ -194,6 +194,8 @@ static XrmOption xrmOptions[] = {
"Window Format. w (desktop name), t (title), n (name), r (role), c (class)", CONFIG_DEFAULT },
{ xrm_Boolean, "click-to-exit", { .snum = &config.click_to_exit }, NULL,
"Click outside the window to exit", CONFIG_DEFAULT },
+ { xrm_Boolean, "show-match", { .snum = &config.show_match }, NULL,
+ "Indicate how it match by underlining it.", CONFIG_DEFAULT },
};
/** Dynamic array of extra options */