mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 21:17:59 +01:00
ignore mappings if :normal is called with the !
This commit is contained in:
@@ -948,7 +948,7 @@ vimperator.Commands = function() //{{{
|
||||
}
|
||||
));
|
||||
addDefaultCommand(new vimperator.Command(["norm[al]"],
|
||||
function(args)
|
||||
function(args, special)
|
||||
{
|
||||
if (!args)
|
||||
{
|
||||
@@ -956,12 +956,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
|
||||
|
||||
Reference in New Issue
Block a user