1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 19:07:58 +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 14:39:51 +00:00
parent fe2986bf70
commit c222232df4

View File

@@ -805,7 +805,8 @@ vimperator.Commands = function() //{{{
if (rhs) if (rhs)
{ {
vimperator.mappings.add(new vimperator.Map(vimperator.modes.NORMAL, [lhs], 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 else