1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 23:18:01 +01:00

prepend the count specified to a user mapping to the map's RHS

This commit is contained in:
Doug Kearns
2007-10-26 13:04:27 +00:00
parent 9adcddff76
commit 95fbbac537

View File

@@ -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