Tab Mix Plusでタブを開く位置を現在のタブのすぐ次の位置に設定していると、ツリー構造が壊れる問題を修正
git-svn-id: http://www.cozmixng.org/repos/piro/treestyletab/trunk@4651 599a83e7-65a4-db11-8015-0010dcdd6dc2
This commit is contained in:
parent
d6370f5047
commit
23d5c2ef20
@ -444,11 +444,19 @@ TreeStyleTabService.overrideExtensionsOnInitAfter = function() {
|
||||
|
||||
eval('gBrowser.TMP_openTabNext = '+
|
||||
gBrowser.TMP_openTabNext.toSource().replace(
|
||||
'{',
|
||||
'{ var tabs = this.treeStyleTab.getDescendantTabs(this.treeStyleTab.getRootTab(this.mCurrentTab));'
|
||||
).replace(
|
||||
/((this.mCurrentTab._tPos)( \+ this.mTabContainer.nextTab))/,
|
||||
'((tabs.length ? tabs[tabs.length-1]._tPos : $2 )$3)'
|
||||
'this.mCurrentTab._tPos + this.mTabContainer.nextTab',
|
||||
<![CDATA[
|
||||
(function() {
|
||||
var tabs = this.treeStyleTab.getDescendantTabs(this.mCurrentTab);
|
||||
var index = !tabs.length ?
|
||||
($&) :
|
||||
this.treeStyleTab.getPref("extensions.tabmix.openTabNextInverse") ?
|
||||
tabs[tabs.length - 1]._tPos :
|
||||
this.mCurrentTab._tPos ;
|
||||
if (index < aTab._tPos) index++;
|
||||
return index;
|
||||
}).call(this)
|
||||
]]>
|
||||
)
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user