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

slightly changed next/prev patterns to allow things like "< Older", or "back <"

This commit is contained in:
Martin Stubenschrott
2007-11-26 13:39:08 +00:00
parent 4a8ae26cdd
commit 4f4f96d591
2 changed files with 2 additions and 26 deletions

View File

@@ -650,30 +650,6 @@ vimperator.Completion = function () //{{{
{
matches = str.match(/^:*\d*\w+!?\s+/);
exLength = matches ? matches[0].length : 0;
// // TODO: maybe we should move these checks to the complete functions
// if (command.hasName("open") || command.hasName("tabopen") || command.hasName("winopen"))
// {
// var skip = args.match(/^(.*,\s+)(.*)/); // start after the last ", "
// if (skip)
// {
// start += skip[1].length;
// args = skip[2];
// }
// }
// else if (command.hasName("echo") || command.hasName("echoerr") || command.hasName("javascript"))
// {
// var skip = args.match(/^(.*?)(\w*)$/); // start at beginning of the last word
// if (skip)
// start += skip[1].length;
// }
// else if (command.hasName("source"))
// {
// var skip = args.match(/^(.*?)(\w*)$/); // start at beginning of the last word
// if (skip)
// start += skip[1].length;
// }
[start, completions] = command.completer.call(this, args);
}
return [exLength + start, completions];