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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user