diff options
| author | David Leadbeater | 2011-08-30 13:40:11 +0100 |
|---|---|---|
| committer | David Leadbeater | 2011-08-30 13:40:11 +0100 |
| commit | cbc7f4d0edd96efd8690257f25cc1b56749f3894 (patch) | |
| tree | c6c1f1df320a7f0ecc6c327451d1ee3f0759c9f3 | |
| parent | 4dbeed095bfb2de9affa3bc03050d5bebc6011ad (diff) | |
| download | vimium-cbc7f4d0edd96efd8690257f25cc1b56749f3894.tar.bz2 | |
Use count if provided in back/forward navigation
| -rw-r--r-- | commands.js | 4 | ||||
| -rw-r--r-- | vimiumFrontend.js | 4 |
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; |
