mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 17:27:57 +01:00
move Map() to the vimperator namespace
This commit is contained in:
@@ -1121,7 +1121,7 @@ vimperator.Commands = function() //{{{
|
|||||||
|
|
||||||
if (rhs)
|
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 }
|
function() { vimperator.events.feedkeys(rhs); }, { rhs: rhs }
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@@ -1300,7 +1300,7 @@ vimperator.Commands = function() //{{{
|
|||||||
if (/^:/.test(rhs))
|
if (/^:/.test(rhs))
|
||||||
{
|
{
|
||||||
vimperator.mappings.add(
|
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
|
else
|
||||||
@@ -1315,7 +1315,7 @@ vimperator.Commands = function() //{{{
|
|||||||
// is created not at runtime
|
// is created not at runtime
|
||||||
if (map)
|
if (map)
|
||||||
vimperator.mappings.add(
|
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
|
else
|
||||||
vimperator.echoerr("E475: Invalid argument: " + "{rhs} must be a existing singular mapping");
|
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