summaryrefslogtreecommitdiffstats
path: root/source/helper.c
diff options
context:
space:
mode:
authorQuentin Glidic <sardemff7+git@sardemff7.net>2017-03-31 18:02:41 +0200
committerQuentin Glidic <sardemff7+git@sardemff7.net>2017-03-31 18:02:41 +0200
commit3a29d3ec7e03a79457a8122cef031d9ae9b7a35e (patch)
treeb035f5cd9a6f1bd3f0ae74bdc4908d079a38e1e9 /source/helper.c
parent7db9cc56bf427e891df3d7bc2a11880f44773e1d (diff)
parentb418352d438b0caa6cd5d3d81887b6c1684395cc (diff)
Merge branch 'master' into wip/waylandwip/wayland
Diffstat (limited to 'source/helper.c')
-rw-r--r--source/helper.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/helper.c b/source/helper.c
index fc907101..6bb41c2d 100644
--- a/source/helper.c
+++ b/source/helper.c
@@ -254,7 +254,7 @@ GRegex **tokenize ( const char *input, int case_sensitive )
}
char *saveptr = NULL, *token;
- GRegex **retv = NULL;
+ GRegex **retv = NULL;
if ( !config.tokenize ) {
retv = g_malloc0 ( sizeof ( GRegex* ) * 2 );
retv[0] = (GRegex *) create_regex ( input, case_sensitive );
@@ -837,8 +837,8 @@ int rofi_scorer_fuzzy_evaluate ( const char *pattern, glong plen, const char *st
// uleft: value of the upper left cell; ulefts: maximum value of uleft and cells on the left. The arbitrary initial
// values suppress warnings.
int uleft = 0, ulefts = 0, left, lefts;
- const gchar *pit = pattern, *sit;
- enum CharClass prev = NON_WORD, cur;
+ const gchar *pit = pattern, *sit;
+ enum CharClass prev = NON_WORD, cur;
for ( si = 0, sit = str; si < slen; si++, sit = g_utf8_next_char ( sit ) ) {
cur = rofi_scorer_get_character_class ( g_utf8_get_char ( sit ) );
score[si] = rofi_scorer_get_score_for ( prev, cur );