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 = "";