Skip to content

Commit 1d266d8

Browse files
committed
Took into account the fact that the user can choose to select search
all files. Signed-off-by: swordmaster2k <[email protected]>
1 parent 9726df4 commit 1d266d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/src/processing/app/FindReplace.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,9 @@ public void replaceAll() {
422422
if (findField.getText().length() == 0)
423423
return;
424424

425-
editor.getSketch().setCurrentCode(0); // select the first tab
425+
if (searchAllFiles)
426+
editor.getSketch().setCurrentCode(0); // select the first tab
427+
426428
editor.setSelection(0, 0); // move to the beginning
427429

428430
boolean foundAtLeastOne = false;

0 commit comments

Comments
 (0)