mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 22:57:58 +01:00
prepend the count specified to a user mapping to the map's RHS
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user