Fix prefix highlighting

This commit is contained in:
ManyTheFish
2023-05-04 16:53:50 +02:00
parent 1afde4fea5
commit cd2573fcc3
3 changed files with 45 additions and 28 deletions

View File

@ -470,6 +470,9 @@ impl QueryTerm {
pub fn is_cached_prefix(&self) -> bool {
self.zero_typo.use_prefix_db.is_some()
}
pub fn is_prefix(&self) -> bool {
self.is_prefix
}
pub fn original_word(&self, ctx: &SearchContext) -> String {
ctx.word_interner.get(self.original).clone()
}