Skip to content

Commit

Permalink
Fix bug where the last character (or line in the case of line mode) w…
Browse files Browse the repository at this point in the history
…ould not be selected if the file was contained entirely within the viewport.
  • Loading branch information
nikhilmitrax committed Oct 28, 2017
1 parent 90c4ab4 commit a67f320
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ace_jump.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ def find(self, regex, region_type, max_labels, case_sensitive):
while (next_search < last_search and last_index < max_labels):
word = self.view.find(regex, next_search, 0 if case_sensitive else sublime.IGNORECASE)

if not word or word.end() >= last_search:
if not word or word.end() > last_search:
break

last_index += 1
Expand Down

0 comments on commit a67f320

Please sign in to comment.