1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-22 02:24:12 +01:00

Fix some :buffer completion issues.

This commit is contained in:
Kris Maglione
2011-08-04 13:03:40 -04:00
parent c01a9a72b0
commit 55f5f9292b
3 changed files with 3 additions and 3 deletions

View File

@@ -1627,7 +1627,7 @@ var Buffer = Module("buffer", {
return {
text: [i + ": " + (tab.label || /*L*/"(Untitled)"), i + ": " + url],
tab: tab,
id: i - 1,
id: i,
url: url,
icon: tab.image || DEFAULT_FAVICON
};

View File

@@ -32,7 +32,7 @@ var Tabs = Module("tabs", {
false, true);
dactyl.commands["tabs.select"] = function (event) {
tabs.select(event.originalTarget.getAttribute("identifier"));
tabs.switchTo(event.originalTarget.getAttribute("identifier"));
};
this.tabBinding = styles.system.add("tab-binding", "chrome://browser/content/browser.xul", String.replace(<><![CDATA[

View File

@@ -171,7 +171,7 @@ var Template = Module("Template", {
<>&#xa0;</>)
})&#xa0;</span>
}
<a xmlns:dactyl={NS} identifier={item.id || ""} dactyl:command={item.command || ""}
<a xmlns:dactyl={NS} identifier={item.id == null ? "" : item.id} dactyl:command={item.command || ""}
href={item.item.url} highlight="URL">{text || ""}</a>
</>,