mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 10:08:00 +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;
|
||||
|
||||
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)";
|
||||
|
||||
Reference in New Issue
Block a user