Skip to content

Commit

Permalink
outside if found
Browse files Browse the repository at this point in the history
  • Loading branch information
mariacamilarg committed Jan 27, 2017
1 parent d9e7a53 commit b18242c
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 @@ -342,11 +342,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 b18242c

Please sign in to comment.