From c222232df48723d122fc1d549f749384ab6d76ee Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 26 Oct 2007 14:39:51 +0000 Subject: [PATCH] prepend the count specified to a user mapping to the map's RHS --- content/commands.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/commands.js b/content/commands.js index f6012119..a0240cd7 100644 --- a/content/commands.js +++ b/content/commands.js @@ -805,7 +805,8 @@ vimperator.Commands = function() //{{{ if (rhs) { vimperator.mappings.add(new vimperator.Map(vimperator.modes.NORMAL, [lhs], - function() { vimperator.events.feedkeys(rhs); }, { rhs: rhs } + function(count) { vimperator.events.feedkeys((count > 1 ? count : "") + rhs); }, + { flags: vimperator.Mappings.flags.COUNT, rhs: rhs } )); } else