[libdazzle] fuzzy: penalize word score when after prefix
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] fuzzy: penalize word score when after prefix
- Date: Sun, 4 Jun 2017 02:28:45 +0000 (UTC)
commit 9a226ebb15a41f1edd1808ff57a768cd21983360
Author: Christian Hergert <chergert redhat com>
Date: Sat Jun 3 19:28:36 2017 -0700
fuzzy: penalize word score when after prefix
src/fuzzy/dzl-fuzzy-index-cursor.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fuzzy/dzl-fuzzy-index-cursor.c b/src/fuzzy/dzl-fuzzy-index-cursor.c
index 3e1d37e..a3cecf0 100644
--- a/src/fuzzy/dzl-fuzzy-index-cursor.c
+++ b/src/fuzzy/dzl-fuzzy-index-cursor.c
@@ -376,7 +376,7 @@ dzl_fuzzy_index_cursor_worker (GTask *task,
const DzlFuzzyIndexItem *item;
item = &lookup.tables[0][i];
- fuzzy_do_match (&lookup, item, 1, 0);
+ fuzzy_do_match (&lookup, item, 1, item->position);
}
}
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]