Merge pull request #2652 from swordmaster2k/master

Fix for #2402
This commit is contained in:
Federico Fissore 2015-05-26 09:48:33 +02:00
commit 015f952f71
1 changed files with 5 additions and 2 deletions

View File

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