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

return an error message if the URL arg to :back and :forward doesn't match

rather than just going back/forward one step in the history anyway
This commit is contained in:
Doug Kearns
2008-08-14 10:17:25 +00:00
parent 0488fa52fc
commit 22884392a2

View File

@@ -552,7 +552,9 @@ liberator.History = function () //{{{
function (args, special, count)
{
if (special)
{
liberator.history.goToStart();
}
else
{
if (args)
@@ -566,9 +568,13 @@ liberator.History = function () //{{{
return;
}
}
liberator.echoerr("Exxx: URL not found in history");
}
else
{
liberator.history.stepTo(count > 0 ? -1 * count : -1);
}
}
},
{
completer: function (filter)
@@ -592,7 +598,9 @@ liberator.History = function () //{{{
function (args, special, count)
{
if (special)
{
liberator.history.goToEnd();
}
else
{
if (args)
@@ -606,9 +614,13 @@ liberator.History = function () //{{{
return;
}
}
liberator.echoerr("Exxx: URL not found in history");
}
else
{
liberator.history.stepTo(count > 0 ? count : 1);
}
}
},
{
completer: function (filter)