From 95fbbac5372db98a8ee394080f6e61c71b54a811 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 26 Oct 2007 13:04:27 +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 05e8aaf0..703f3aeb 100644 --- a/content/commands.js +++ b/content/commands.js @@ -1122,7 +1122,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