1
0
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:
Doug Kearns
2007-10-22 05:18:18 +00:00
parent f2e530d326
commit 3d71efbdc1
2 changed files with 184 additions and 184 deletions

View File

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