mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 13:48:00 +01:00
move Map() to the vimperator namespace
This commit is contained in:
@@ -1121,7 +1121,7 @@ vimperator.Commands = function() //{{{
|
||||
|
||||
if (rhs)
|
||||
{
|
||||
vimperator.mappings.add(new Map([vimperator.modes.NORMAL], [lhs],
|
||||
vimperator.mappings.add(new vimperator.Map([vimperator.modes.NORMAL], [lhs],
|
||||
function() { vimperator.events.feedkeys(rhs); }, { rhs: rhs }
|
||||
));
|
||||
}
|
||||
@@ -1300,7 +1300,7 @@ vimperator.Commands = function() //{{{
|
||||
if (/^:/.test(rhs))
|
||||
{
|
||||
vimperator.mappings.add(
|
||||
new Map([vimperator.modes.NORMAL], [lhs], function() { vimperator.execute(rhs); }, { rhs: rhs })
|
||||
new vimperator.Map([vimperator.modes.NORMAL], [lhs], function() { vimperator.execute(rhs); }, { rhs: rhs })
|
||||
);
|
||||
}
|
||||
else
|
||||
@@ -1315,7 +1315,7 @@ vimperator.Commands = function() //{{{
|
||||
// is created not at runtime
|
||||
if (map)
|
||||
vimperator.mappings.add(
|
||||
new Map([vimperator.modes.NORMAL], [lhs], map.action, { flags: map.flags, rhs: rhs })
|
||||
new vimperator.Map([vimperator.modes.NORMAL], [lhs], map.action, { flags: map.flags, rhs: rhs })
|
||||
);
|
||||
else
|
||||
vimperator.echoerr("E475: Invalid argument: " + "{rhs} must be a existing singular mapping");
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user