Took into account the fact that the user can choose to select search

all files.

Signed-off-by: swordmaster2k <b00056835@student.itb.ie>
This commit is contained in:
swordmaster2k 2015-02-16 19:23:59 +00:00
parent 9726df4c1f
commit 1d266d89cd
1 changed files with 3 additions and 1 deletions

View File

@ -422,7 +422,9 @@ public class FindReplace extends JFrame implements ActionListener {
if (findField.getText().length() == 0)
return;
editor.getSketch().setCurrentCode(0); // select the first tab
if (searchAllFiles)
editor.getSketch().setCurrentCode(0); // select the first tab
editor.setSelection(0, 0); // move to the beginning
boolean foundAtLeastOne = false;