From d1a286e3ce3c3a3c96dd763390fbff9f9edcad57 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Mon, 9 Jul 2007 13:27:58 +0000 Subject: [PATCH] reverted scroll window.content patch for now (untested) --- AUTHORS | 1 + chrome/content/vimperator/commands.js | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/AUTHORS b/AUTHORS index 654b93bc..6efbeec8 100644 --- a/AUTHORS +++ b/AUTHORS @@ -12,4 +12,5 @@ Patches: * Lee Hinman (:open ./.. support) * Bart Trojanowski (Makefile) * Hannes Rist (:set titlestring support) + * Marco Candrian (shift-insert patch) diff --git a/chrome/content/vimperator/commands.js b/chrome/content/vimperator/commands.js index a6c3a907..d916450a 100644 --- a/chrome/content/vimperator/commands.js +++ b/chrome/content/vimperator/commands.js @@ -1299,8 +1299,8 @@ function getCurrentTitle() function scrollBufferRelative(right, down) { - //var win = window.document.commandDispatcher.focusedWindow; - var win = window.content; + var win = window.document.commandDispatcher.focusedWindow; + //var win = window.content; // XXX: This would fix scrolling when the tab has focus, but breaks when it has frames --MST if (vimperator.input.count < 1) vimperator.input.count = 1; @@ -1329,8 +1329,8 @@ function scrollBufferRelative(right, down) /* both values are given in percent, -1 means no change */ function scrollBufferAbsolute(horizontal, vertical) { - //var win = document.commandDispatcher.focusedWindow; - var win = window.content; + var win = document.commandDispatcher.focusedWindow; + //var win = window.content; var horiz, vert; if (horizontal < 0)