mirror of https://github.com/noisymime/Arduino.git
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:
parent
9726df4c1f
commit
1d266d89cd
|
@ -422,7 +422,9 @@ public class FindReplace extends JFrame implements ActionListener {
|
||||||
if (findField.getText().length() == 0)
|
if (findField.getText().length() == 0)
|
||||||
return;
|
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
|
editor.setSelection(0, 0); // move to the beginning
|
||||||
|
|
||||||
boolean foundAtLeastOne = false;
|
boolean foundAtLeastOne = false;
|
||||||
|
|
Loading…
Reference in New Issue