1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 10:57:58 +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) function (args, special, count)
{ {
if (special) if (special)
{
liberator.history.goToStart(); liberator.history.goToStart();
}
else else
{ {
if (args) if (args)
@@ -566,9 +568,13 @@ liberator.History = function () //{{{
return; return;
} }
} }
liberator.echoerr("Exxx: URL not found in history");
} }
else
{
liberator.history.stepTo(count > 0 ? -1 * count : -1); liberator.history.stepTo(count > 0 ? -1 * count : -1);
} }
}
}, },
{ {
completer: function (filter) completer: function (filter)
@@ -592,7 +598,9 @@ liberator.History = function () //{{{
function (args, special, count) function (args, special, count)
{ {
if (special) if (special)
{
liberator.history.goToEnd(); liberator.history.goToEnd();
}
else else
{ {
if (args) if (args)
@@ -606,9 +614,13 @@ liberator.History = function () //{{{
return; return;
} }
} }
liberator.echoerr("Exxx: URL not found in history");
} }
else
{
liberator.history.stepTo(count > 0 ? count : 1); liberator.history.stepTo(count > 0 ? count : 1);
} }
}
}, },
{ {
completer: function (filter) completer: function (filter)