From cbc7f4d0edd96efd8690257f25cc1b56749f3894 Mon Sep 17 00:00:00 2001 From: David Leadbeater Date: Tue, 30 Aug 2011 13:40:11 +0100 Subject: Use count if provided in back/forward navigation --- commands.js | 4 ++-- 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; -- cgit v1.2.3