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

beep when frame motion bounds are exceeded

This commit is contained in:
Doug Kearns
2007-08-11 11:53:15 +00:00
parent 575833ac86
commit 101bcf025e

View File

@@ -213,8 +213,13 @@ function Buffer() //{{{
next++;
if (next > frames.length - 1)
{
if (current == frames.length - 1)
vimperator.beep(); // still allow the frame indicator to be activated
next = frames.length - 1;
}
}
else
{
if (count > 1)
@@ -223,8 +228,13 @@ function Buffer() //{{{
next--;
if (next < 0)
{
if (current == 0)
vimperator.beep(); // still allow the frame indicator to be activated
next = 0;
}
}
// focus next frame and scroll into view
frames[next].focus();