Skip to content

Commit 015f952

Browse files
committed
Merge pull request #2652 from swordmaster2k/master
Fix for #2402
2 parents 9c1fd0d + 1d266d8 commit 015f952

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

app/src/processing/app/FindReplace.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,11 @@ public void replaceAndFindNext() {
421421
public void replaceAll() {
422422
if (findField.getText().length() == 0)
423423
return;
424-
// move to the beginning
425-
editor.setSelection(0, 0);
424+
425+
if (searchAllFiles)
426+
editor.getSketch().setCurrentCode(0); // select the first tab
427+
428+
editor.setSelection(0, 0); // move to the beginning
426429

427430
boolean foundAtLeastOne = false;
428431
while (true) {

0 commit comments

Comments
 (0)