summaryrefslogtreecommitdiffstats
path: root/source/view.c
diff options
context:
space:
mode:
authorDave Davenport <qball@gmpclient.org>2016-06-16 22:23:55 +0200
committerDave Davenport <qball@gmpclient.org>2016-06-16 22:23:55 +0200
commit7a2435a23b97a546330b80c468a7446ef128fd6b (patch)
tree79bb92bc2690d8913dc2ecacf8964597aabc0444 /source/view.c
parent57336b96f03afc0b040514d09b074d7024a965e1 (diff)
Indent don't use partial match.
Diffstat (limited to 'source/view.c')
-rw-r--r--source/view.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/view.c b/source/view.c
index f88259f0..59ad874a 100644
--- a/source/view.c
+++ b/source/view.c
@@ -496,10 +496,10 @@ static void filter_elements ( thread_state *t, G_GNUC_UNUSED gpointer user_data
t->state->line_map[t->start + t->count] = i;
if ( config.levenshtein_sort ) {
// This is inefficient, need to fix it.
- char * str = mode_get_completion ( t->state->sw, i );
+ char * str = mode_get_completion ( t->state->sw, i );
char * input = mode_preprocess_input ( t->state->sw, t->state->text->text );
t->state->distance[i] = levenshtein ( input, str );
- g_free(input);
+ g_free ( input );
g_free ( str );
}
t->count++;
@@ -926,9 +926,9 @@ static void rofi_view_draw ( RofiViewState *state, cairo_t *d )
int x_offset = state->border;
if ( state->rchanged ) {
- char *input = mode_preprocess_input ( state->sw, state->text->text );
+ char *input = mode_preprocess_input ( state->sw, state->text->text );
GRegex **tokens = tokenize ( input, config.case_sensitive );
- g_free(input);
+ g_free ( input );
// Move, resize visible boxes and show them.
for ( i = 0; i < max_elements && ( i + offset ) < state->filtered_lines; i++ ) {
unsigned int ex = ( ( i ) / state->max_rows ) * ( element_width + config.line_margin );