File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff 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 ) {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments