File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -421,8 +421,11 @@ public void replaceAndFindNext() {
421
421
public void replaceAll () {
422
422
if (findField .getText ().length () == 0 )
423
423
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
426
429
427
430
boolean foundAtLeastOne = false ;
428
431
while (true ) {
Original file line number Diff line number Diff line change @@ -482,7 +482,7 @@ private int getMaximumDrawableMenuItems() {
482
482
double screenHeight = java .awt .Toolkit .getDefaultToolkit ().getScreenSize ().getHeight ();
483
483
484
484
int maxItems = (int ) ((screenHeight - arrowMenuItemHeight * 2 - menuBorderHeight ) / itemHeight );
485
- maxItems -= maxItems / 3 ;
485
+ maxItems -= maxItems / 4 ;
486
486
return maxItems ;
487
487
}
488
488
You can’t perform that action at this time.
0 commit comments