mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 21:37:58 +01:00
fix error in statusline.updateTabCount when go has "n" or "N" and tabs have been deleted - mTabs can contain more items than mTabs.length
This commit is contained in:
@@ -1846,7 +1846,7 @@ function StatusLine() //{{{
|
|||||||
// tab numbers set
|
// tab numbers set
|
||||||
if (options.get("guioptions").has("n", "N"))
|
if (options.get("guioptions").has("n", "N"))
|
||||||
{
|
{
|
||||||
for (let [i, tab] in Iterator(getBrowser().mTabs))
|
for (let [i, tab] in util.Array.iterator2(getBrowser().mTabs))
|
||||||
tab.setAttribute("ordinal", i + 1);
|
tab.setAttribute("ordinal", i + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user