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:
@@ -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)";
|
||||||
|
|||||||
Reference in New Issue
Block a user