From 8d547de417b341a6db0e9b66bf93b4c10716b5f5 Mon Sep 17 00:00:00 2001 From: Daniel Bainton Date: Fri, 19 Sep 2008 10:33:12 +0000 Subject: [PATCH] Make :buffer completion work with the tab numbers too --- content/completion.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/content/completion.js b/content/completion.js index acad5371..884c6472 100644 --- a/content/completion.js +++ b/content/completion.js @@ -185,10 +185,12 @@ liberator.Completion = function () //{{{ url = getBrowser().getBrowserAtIndex(i).contentDocument.location.href; - if (title.indexOf(filter) == -1 && url.indexOf(filter) == -1) + if (title.indexOf(filter) == -1 && url.indexOf(filter) == -1 && + (i + 1).toString().indexOf(filter) == -1) continue; - if (title.indexOf(filter) != -1 || url.indexOf(filter) != -1) + if (title.indexOf(filter) != -1 || url.indexOf(filter) != -1 || + (i + 1).toString().indexOf(filter) != -1) { if (title == "") title = "(Untitled)";