From 5a552ed098c61a5de41df5047c8718a7ef565234 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Sun, 3 Jun 2007 16:12:55 +0000 Subject: [PATCH] fix missing [count] functionality in normal mode commands --- chrome/content/vimperator/mappings.js | 4 ++-- chrome/content/vimperator/vimperator.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/chrome/content/vimperator/mappings.js b/chrome/content/vimperator/mappings.js index b07282d3..a7fe73b2 100644 --- a/chrome/content/vimperator/mappings.js +++ b/chrome/content/vimperator/mappings.js @@ -38,9 +38,9 @@ function Map(mode, cmds, act, extra_info) //{{{ } // Since we will add many Map-objects, we add some functions as prototypes // this will ensure we only have one copy of each function, not one for each object -Map.prototype.execute = function() +Map.prototype.execute = function(count) { - this.action.call(this); + this.action.call(this, count); } Map.prototype.toString = function() diff --git a/chrome/content/vimperator/vimperator.js b/chrome/content/vimperator/vimperator.js index 861f5cca..d5656b39 100644 --- a/chrome/content/vimperator/vimperator.js +++ b/chrome/content/vimperator/vimperator.js @@ -935,7 +935,7 @@ function Vimperator() g_count = -1; // FIXME: allow null (= no operation) mappings. No longer applicable? -- djk - map.execute(); + map.execute(g_count); // command executed, reset input buffer g_inputbuffer = "";