Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Dec 9, 2024
1 parent 181ddb9 commit ce84348
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/textual/fuzzy.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,11 @@ def match(
push = stack.append
pop = stack.pop
query_size = len(query)
find = candidate.find

while stack:
search = stack[-1]
offset = candidate.find(
query[search.query_offset],
search.candidate_offset,
)
offset = find(query[search.query_offset], search.candidate_offset)
if offset == -1:
pop()
else:
Expand Down

0 comments on commit ce84348

Please sign in to comment.