aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIlya2011-10-19 13:02:08 -0700
committerIlya2011-10-19 13:02:08 -0700
commit4d9622ecf41f9c0e15cf7f3f84c39d1cf7370e92 (patch)
treea2a06a1d6f82a593de40bc7689f2455467f84460
parent04ce1512b62981004134e177c134d4cd029b99e8 (diff)
parentcbc7f4d0edd96efd8690257f25cc1b56749f3894 (diff)
downloadvimium-4d9622ecf41f9c0e15cf7f3f84c39d1cf7370e92.tar.bz2
Merge pull request #395 from dgl/countnav
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 4bb8d07e..c5df6372 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;