summaryrefslogtreecommitdiffstats
path: root/source/view.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-05-21 10:37:23 +0200
committerDave Davenport <qball@gmpclient.org>2016-05-21 10:37:23 +0200
commit8091558ed8234914b398fe288aaccfe9770dac9c (patch)
tree2ecc4bf3a033b7103b323f6e2b6a9fb8840bdf37 /source/view.c
parent2a20821ddd65b3d33e04c5b879fd990bf0b34fb8 (diff)
Go Regex Go
Diffstat (limited to 'source/view.c')
-rw-r--r--source/view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/view.c b/source/view.c
index de9b00cf..2c98b972 100644
--- a/source/view.c
+++ b/source/view.c
@@ -949,10 +949,11 @@ static void rofi_view_draw ( RofiViewState *state, cairo_t *d )
textbox_text ( state->boxes[i], text );
PangoAttrList *list = textbox_get_pango_attributes ( state->boxes[i] );
- if ( list != NULL )
+ if ( list != NULL ) {
pango_attr_list_ref ( list );
- else list = pango_attr_list_new ();
- regex_token_match_get_pango_attr ( tokens, textbox_get_visible_text ( state->boxes[i] ), list );
+ }
+ else{ list = pango_attr_list_new (); }
+ token_match_get_pango_attr ( tokens, textbox_get_visible_text ( state->boxes[i] ), list );
textbox_set_pango_attributes ( state->boxes[i], list );
pango_attr_list_unref ( list );
g_free ( text );