Skip to content

Commit af512be

Browse files
committed
Merge branch 'master' of github.com:arduino/Arduino
2 parents f495be4 + 015f952 commit af512be

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Diff for: app/src/processing/app/FindReplace.java

+5-2
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) {

Diff for: app/src/processing/app/tools/MenuScroller.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ private int getMaximumDrawableMenuItems() {
482482
double screenHeight = java.awt.Toolkit.getDefaultToolkit().getScreenSize().getHeight();
483483

484484
int maxItems = (int) ((screenHeight - arrowMenuItemHeight * 2 - menuBorderHeight) / itemHeight);
485-
maxItems -= maxItems / 3;
485+
maxItems -= maxItems / 4;
486486
return maxItems;
487487
}
488488

0 commit comments

Comments
 (0)