Fixed bug introduced by #2402. Began replace all search from the first tab.

Signed-off-by: swordmaster2k <b00056835@student.itb.ie>
This commit is contained in:
swordmaster2k 2015-02-16 18:47:14 +00:00
parent 00941453db
commit 87989a2d7b
1 changed files with 3 additions and 2 deletions

View File

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