From 31880b5312ed235bf456ece6bbfccc02fc0c3c73 Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Sun, 7 Dec 2008 08:38:14 -0500 Subject: [PATCH] Fix completion.buffer --- common/content/completion.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/common/content/completion.js b/common/content/completion.js index ba0a1cf5..c2f2c0d0 100644 --- a/common/content/completion.js +++ b/common/content/completion.js @@ -1177,26 +1177,26 @@ function Completion() //{{{ buffer: function buffer(context) { filter = context.filter.toLowerCase(); + context.anchored = false; context.title = ["Buffer", "URL"]; context.keys = { text: "text", description: "url", icon: "icon" }; let process = context.process[0]; - context.process = [function (item) + context.process = [function (item, text) <> {item.item.indicator} - { process.call(this, item) } + { process.call(this, item, text) } ]; context.completions = util.map(tabs.browsers, function ([i, browser]) { + let indicator = " "; if (i == tabs.index()) indicator = "%" else if (i == tabs.index(tabs.alternate)) indicator = "#"; - else - indicator = " "; let tab = tabs.getTab(i); - i = i + 1; let url = browser.contentDocument.location.href; + i = i + 1; return { text: [i + ": " + (tab.label || "(Untitled)"), i + ": " + url],