mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-04-20 11:31:26 +02:00
don't output status messages when history bounds are exceeded - just beep
This commit is contained in:
@@ -423,10 +423,6 @@ function History() //{{{
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
vimperator.beep();
|
vimperator.beep();
|
||||||
if (index < 0)
|
|
||||||
vimperator.echo("Cannot go past beginning of history");
|
|
||||||
else
|
|
||||||
vimperator.echo("Cannot go past end of history");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -435,7 +431,7 @@ function History() //{{{
|
|||||||
var index = getWebNavigation().sessionHistory.index;
|
var index = getWebNavigation().sessionHistory.index;
|
||||||
if (index == 0)
|
if (index == 0)
|
||||||
{
|
{
|
||||||
vimperator.echo("Already at beginning of history");
|
vimperator.beep();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getWebNavigation().gotoIndex(0);
|
getWebNavigation().gotoIndex(0);
|
||||||
@@ -447,7 +443,7 @@ function History() //{{{
|
|||||||
var max = getWebNavigation().sessionHistory.count -1;
|
var max = getWebNavigation().sessionHistory.count -1;
|
||||||
if (index == max)
|
if (index == max)
|
||||||
{
|
{
|
||||||
vimperator.echo("Already at end of history");
|
vimperator.beep();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
getWebNavigation().gotoIndex(max);
|
getWebNavigation().gotoIndex(max);
|
||||||
|
|||||||
Reference in New Issue
Block a user