Skip to content

Commit

Permalink
outside if found
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacamilarg authored and dalthviz committed Aug 15, 2017
1 parent 9f095a9 commit 500a1f3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spyder/widgets/findreplace.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,11 +400,12 @@ def find(self, changed=True, forward=True,
self.highlight_timer.start()
else:
self.highlight_matches()
number_matches = self.editor.get_number_matches(text)
self.change_number_matches(current_match=0,
total_matches=number_matches)
else:
self.clear_matches()

number_matches = self.editor.get_number_matches(text)
self.change_number_matches(current_match=0,
total_matches=number_matches)
return found

@Slot()
Expand Down

0 comments on commit 500a1f3

Please sign in to comment.