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:
@@ -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,8 +568,12 @@ 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);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -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,8 +614,12 @@ 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);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user