Skip to content

Commit 87989a2

Browse files
committed
Fixed bug introduced by #2402. Began replace all search from the first tab.
Signed-off-by: swordmaster2k <b00056835@student.itb.ie>
1 parent 0094145 commit 87989a2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/processing/app/FindReplace.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -421,8 +421,9 @@ 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+
editor.getSketch().setCurrentCode(0); // select the first tab
426+
editor.setSelection(0, 0); // move to the beginning
426427

427428
boolean foundAtLeastOne = false;
428429
while (true) {

0 commit comments

Comments
 (0)