1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-22 16:57:57 +01:00

ignore mappings if :normal is called with the !

This commit is contained in:
Doug Kearns
2007-11-10 15:14:30 +00:00
parent 2c5655e182
commit 5506546f10

View File

@@ -1380,7 +1380,7 @@ vimperator.Commands = function () //{{{
}
));
addDefaultCommand(new vimperator.Command(["norm[al]"],
function (args)
function (args, special)
{
if (!args)
{
@@ -1388,12 +1388,13 @@ vimperator.Commands = function () //{{{
return;
}
vimperator.events.feedkeys(args);
vimperator.events.feedkeys(args, special);
},
{
usage: ["norm[al][!] {commands}"],
short_help: "Execute Normal mode commands",
help: "Example: <code class=\"command\">:normal 20j</code> scrolls 20 lines down."
help: "Example: <code class=\"command\">:normal 20j</code> scrolls 20 lines down. " +
"If the <code class=\"argument\">[!]</code> is specified mappings will not be used."
}
));
// TODO: remove duplication in :map