aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Leadbeater2011-08-30 13:40:11 +0100
committerDavid Leadbeater2011-08-30 13:40:11 +0100
commitcbc7f4d0edd96efd8690257f25cc1b56749f3894 (patch)
treec6c1f1df320a7f0ecc6c327451d1ee3f0759c9f3
parent4dbeed095bfb2de9affa3bc03050d5bebc6011ad (diff)
downloadvimium-cbc7f4d0edd96efd8690257f25cc1b56749f3894.tar.bz2
Use count if provided in back/forward navigation
-rw-r--r--commands.js4
-rw-r--r--vimiumFrontend.js4
2 files changed, 4 insertions, 4 deletions
diff --git a/commands.js b/commands.js
index 894818a2..f36c57b3 100644
--- a/commands.js
+++ b/commands.js
@@ -186,8 +186,8 @@ var commandDescriptions = {
goNext: ["Follow the link labeled next or >"],
// Navigating your history
- goBack: ["Go back in history"],
- goForward: ["Go forward in history"],
+ goBack: ["Go back in history", { passCountToFunction: true }],
+ goForward: ["Go forward in history", { passCountToFunction: true }],
// Navigating the URL hierarchy
goUp: ["Go up the URL hierarchy", { passCountToFunction: true }],
diff --git a/vimiumFrontend.js b/vimiumFrontend.js
index 4307b481..024f149f 100644
--- a/vimiumFrontend.js
+++ b/vimiumFrontend.js
@@ -243,8 +243,8 @@ function focusInput(count) {
}
function reload() { window.location.reload(); }
-function goBack() { history.back(); }
-function goForward() { history.forward(); }
+function goBack(count) { history.go(-count); }
+function goForward(count) { history.go(count); }
function goUp(count) {
var url = window.location.href;