From 101bcf025eee20a2bd332d921b653d6be2a6a8eb Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sat, 11 Aug 2007 11:53:15 +0000 Subject: [PATCH] beep when frame motion bounds are exceeded --- chrome/content/vimperator/buffers.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/chrome/content/vimperator/buffers.js b/chrome/content/vimperator/buffers.js index 623635e2..7bea2212 100644 --- a/chrome/content/vimperator/buffers.js +++ b/chrome/content/vimperator/buffers.js @@ -213,7 +213,12 @@ 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 { @@ -223,7 +228,12 @@ 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