diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2016-06-07 00:27:19 +0200 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2016-06-07 00:56:38 +0200 |
commit | 0d407bcd6c5ad8e9279d667dfb8225991b998d02 (patch) | |
tree | 6ea7fd9f8931f55664c1227f62b4be9e3b248385 /gtk/gtksearchenginetracker.c | |
parent | 289fc9640bbeba1096f15bb0b735d0361cf4c9dc (diff) | |
download | gtk+-0d407bcd6c5ad8e9279d667dfb8225991b998d02.tar.gz |
searchenginetracker: Fix prefix searches
With the FTS5 query syntax, when using quotes to delimit the search phrase
the '*' token must happen after the quote, or will otherwise be considered
a character to match, go through the tokenizer, and end up ignored in
result.
Diffstat (limited to 'gtk/gtksearchenginetracker.c')
-rw-r--r-- | gtk/gtksearchenginetracker.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtksearchenginetracker.c b/gtk/gtksearchenginetracker.c index 0d38d5aebd..665f166955 100644 --- a/gtk/gtksearchenginetracker.c +++ b/gtk/gtksearchenginetracker.c @@ -242,10 +242,10 @@ sparql_append_string_literal (GString *sparql, if (is_dir_uri) g_string_append_c (sparql, '/'); - if (glob) - g_string_append_c (sparql, '*'); if (quoted) g_string_append (sparql, "\\\""); + if (glob) + g_string_append_c (sparql, '*'); g_string_append_c (sparql, '"'); g_free (s); |