aboutsummaryrefslogtreecommitdiff
path: root/src/index
diff options
context:
space:
mode:
authorDanielGavin <danielgavin5@hotmail.com>2021-05-10 23:13:47 +0200
committerDanielGavin <danielgavin5@hotmail.com>2021-05-10 23:13:47 +0200
commitf468b8089cc4ab1e76fac7ed8defb7dc6a65d6c7 (patch)
tree5266c2cb6887f4fd166407f6b2df6abd1cbf08ad /src/index
parent60969db9e072ea645d4076a58b4a6c5a55349288 (diff)
fix the linux bug with a workaround until the issue is resolved.
Diffstat (limited to 'src/index')
-rw-r--r--src/index/memory_index.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/index/memory_index.odin b/src/index/memory_index.odin
index 4ec12f6..93c7ded 100644
--- a/src/index/memory_index.odin
+++ b/src/index/memory_index.odin
@@ -44,7 +44,7 @@ memory_index_fuzzy_search :: proc(index: ^MemoryIndex, name: string, pkgs: []str
continue;
}
- if score, ok := common.fuzzy_match(fuzzy_matcher, symbol.name); ok {
+ if score, ok := common.fuzzy_match(fuzzy_matcher, symbol.name); ok == 1 {
result := FuzzyResult {
symbol = symbol,
score = score,