Skip to content

Commit

Permalink
Merge 89544ac into d7d4d1b
Browse files Browse the repository at this point in the history
  • Loading branch information
qtov committed Jun 6, 2021
2 parents d7d4d1b + 89544ac commit 773478d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nv/polyfill.py
Expand Up @@ -88,7 +88,7 @@ def view_find(view, pattern: str, start_pt: int, flags: int = 0):
# There's no Sublime API to find patterns in reverse direction.
# See: https://github.com/SublimeTextIssues/Core/issues/245.
def view_rfind_all(view, pattern: str, start_pt: int, flags: int = 0):
matches = view.find_all(pattern)
matches = view.find_all(pattern, flags)
for region in matches:
if region.b > start_pt:
return reversed(matches[:matches.index(region)])
Expand Down

0 comments on commit 773478d

Please sign in to comment.