diff options
author | teramako | 2008-11-27 03:00:22 +0000 |
---|---|---|
committer | teramako | 2008-11-27 03:00:22 +0000 |
commit | 2416dd87e154a4176840a5f01e311886ca402be2 (patch) | |
tree | 8af831ba31649f52b63a823b6ef470895253d247 | |
parent | 4eeecdf1d4f0ed70777bf99dc0b8c3b4108d27c5 (diff) | |
download | vimperator-plugins-2416dd87e154a4176840a5f01e311886ca402be2.tar.bz2 |
follow CVS HEAD (fix: command argument)
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25055 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | feedSomeKeys_2.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/feedSomeKeys_2.js b/feedSomeKeys_2.js index f5ac206..508f6b4 100644 --- a/feedSomeKeys_2.js +++ b/feedSomeKeys_2.js @@ -303,16 +303,16 @@ function feedKeyIntoContent(keys, useVkey){ // Command // -------------------------- commands.addUserCommand(['feedmap','fmap'],'Feed Map a key sequence', - function(args, bang){ + function(args){ if(!args.string){ liberator.echo(template.table("feedmap list",feedMaps.map(function(map) [map.names[0], map.rhs])), true); return; } - if (bang) destroy(); + if (args.bang) destroy(); var depth = args["-depth"] ? args["-depth"] : ""; var useVkey = "-vkey" in args; - args.arguments.forEach(function(keypair){ + args.forEach(function(keypair){ var [lhs, rhs] = keypair.split(","); if (!rhs) rhs = lhs; replaceUserMap(lhs, depth + rhs, useVkey); |