1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 17:12:27 +01:00

[muttator] fixed :goto

This commit is contained in:
Martin Stubenschrott
2008-11-09 16:30:42 +00:00
parent 05005ce482
commit 91fa8dddff
4 changed files with 18 additions and 5 deletions

View File

@@ -210,7 +210,6 @@ function Search() //{{{
lastString = word;
if (range == null)
{
liberator.dump(this.wrapped);
if (this.wrapped)
{
this.cancel();

View File

@@ -668,7 +668,7 @@ function Mail() //{{{
"Select a folder",
function (args, special, count)
{
args = args || "Inbox";
args = args.string || "Inbox";
count = count > 0 ? (count - 1) : 0;
var folder = mail.getFolders(args, true, true)[count];
@@ -814,6 +814,8 @@ function Mail() //{{{
var folders = [];
if (!filter)
filter = "";
else
filter = filter.toLowerCase();
if (includeServers === undefined)
includeServers = false;
@@ -829,9 +831,9 @@ function Mail() //{{{
var folderString = resource.server.prettyName + ": " + resource.name;
if (resource.prettiestName.toLowerCase().indexOf(filter.toLowerCase()) >= 0)
if (resource.prettiestName.toLowerCase().indexOf(filter) >= 0)
folders.push(resource);
else if (folderString.toLowerCase().indexOf(filter.toLowerCase()) >= 0)
else if (folderString.toLowerCase().indexOf(filter) >= 0)
folders.push(resource);
}
return folders;