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:
@@ -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
|
||||
};
|
||||
|
||||
@@ -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[
|
||||
|
||||
@@ -171,7 +171,7 @@ var Template = Module("Template", {
|
||||
<> </>)
|
||||
}) </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>
|
||||
</>,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user