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,7 +213,12 @@ function Buffer() //{{{
next++; next++;
if (next > frames.length - 1) if (next > frames.length - 1)
{
if (current == frames.length - 1)
vimperator.beep(); // still allow the frame indicator to be activated
next = frames.length - 1; next = frames.length - 1;
}
} }
else else
{ {
@@ -223,7 +228,12 @@ function Buffer() //{{{
next--; next--;
if (next < 0) if (next < 0)
{
if (current == 0)
vimperator.beep(); // still allow the frame indicator to be activated
next = 0; next = 0;
}
} }
// focus next frame and scroll into view // focus next frame and scroll into view