chore: per gemini

Signed-off-by: discord9 <discord9@163.com>
This commit is contained in:
discord9
2026-04-13 11:29:47 +08:00
parent 637e7eda5c
commit 22a6c8c13f

View File

@@ -345,16 +345,15 @@ impl MatchesTermFinder {
let prev_ok = self.starts_with_other || boundary_ok(self.term_kind, prev, false);
if prev_ok {
if self.term_kind == TermKind::HanContaining {
return true;
}
let next_pos = actual_pos + self.finder.needle().len();
let next = text[next_pos..].chars().next();
let next_ok = self.ends_with_other || boundary_ok(self.term_kind, next, false);
let match_ok = match self.term_kind {
TermKind::HanContaining => true,
_ => prev_ok && next_ok,
};
if match_ok {
if next_ok {
return true;
}
}