mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-17 22:23:10 +03:00
Merge branch 'master' of github.com:arduino/Arduino
This commit is contained in:
@ -421,8 +421,11 @@ public class FindReplace extends JFrame implements ActionListener {
|
|||||||
public void replaceAll() {
|
public void replaceAll() {
|
||||||
if (findField.getText().length() == 0)
|
if (findField.getText().length() == 0)
|
||||||
return;
|
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;
|
boolean foundAtLeastOne = false;
|
||||||
while (true) {
|
while (true) {
|
||||||
|
@ -482,7 +482,7 @@ public class MenuScroller {
|
|||||||
double screenHeight = java.awt.Toolkit.getDefaultToolkit().getScreenSize().getHeight();
|
double screenHeight = java.awt.Toolkit.getDefaultToolkit().getScreenSize().getHeight();
|
||||||
|
|
||||||
int maxItems = (int) ((screenHeight - arrowMenuItemHeight * 2 - menuBorderHeight) / itemHeight);
|
int maxItems = (int) ((screenHeight - arrowMenuItemHeight * 2 - menuBorderHeight) / itemHeight);
|
||||||
maxItems -= maxItems / 3;
|
maxItems -= maxItems / 4;
|
||||||
return maxItems;
|
return maxItems;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user