1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:32:25 +01:00

Make :buffer completion work with the tab numbers too

This commit is contained in:
Daniel Bainton
2008-09-19 10:33:12 +00:00
parent 2fd34faf3a
commit 8d547de417

View File

@@ -185,10 +185,12 @@ liberator.Completion = function () //{{{
url = getBrowser().getBrowserAtIndex(i).contentDocument.location.href; 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; 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 == "") if (title == "")
title = "(Untitled)"; title = "(Untitled)";