Fixed prefix length bug

This commit is contained in:
Simon Cambier
2023-01-19 22:02:19 +01:00
parent 42ba653642
commit 5bc3ac045a
2 changed files with 3 additions and 3 deletions

View File

@@ -280,12 +280,12 @@ export class Omnisearch {
let results: SearchResult[]
if (settings.simpleSearch) {
results = await this.search(query, {
prefixLength: 1,
prefixLength: 3,
singleFilePath: options?.singleFilePath,
})
} else {
results = await this.search(query, {
prefixLength: 3,
prefixLength: 1,
singleFilePath: options?.singleFilePath,
})
}