File tree Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Expand file tree Collapse file tree 1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -526,17 +526,10 @@ const Tabs = Module("tabs", {
526
526
* Selects the alternate tab.
527
527
*/
528
528
selectAlternateTab : function ( ) {
529
- liberator . assert ( tabs . alternate != null && tabs . getTab ( ) != tabs . alternate , "No alternate page" ) ;
529
+ let alternate = tabs . alternate ;
530
+ liberator . assert ( alternate != null && tabs . getTab ( ) != alternate , "No alternate page" ) ;
530
531
531
- // NOTE: this currently relies on v.tabs.index() returning the
532
- // currently selected tab index when passed null
533
- let index = tabs . index ( tabs . alternate ) ;
534
-
535
- // TODO: since a tab close is more like a bdelete for us we
536
- // should probably reopen the closed tab when a 'deleted'
537
- // alternate is selected
538
- liberator . assert ( index >= 0 , "Alternate buffer does not exist" ) ; // TODO: This should read "Buffer N does not exist"
539
- tabs . select ( index , false , true ) ;
532
+ config . tabbrowser . tabContainer . selectedItem = alternate ;
540
533
} ,
541
534
542
535
// NOTE: when restarting a session FF selects the first tab and then the
You can’t perform that action at this time.
0 commit comments