diff options
author | anekos | 2010-07-31 05:12:45 +0000 |
---|---|---|
committer | anekos | 2010-07-31 05:12:45 +0000 |
commit | 1e6106aeef9b49db9889e55b7a29c38dbd6e76da (patch) | |
tree | 447fe47ae10b47d86fe8ce95dc4385c02b320055 | |
parent | 5662c9013035ed07a8b549548d2d5c7ac51d1b44 (diff) | |
download | vimperator-plugins-1e6106aeef9b49db9889e55b7a29c38dbd6e76da.tar.bz2 |
紛らわしいので arg > args
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@38066 d0d07461-0603-4401-acd4-de1884942a52
-rwxr-xr-x | twittperator.js | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/twittperator.js b/twittperator.js index 5a19106..b7e7ecc 100755 --- a/twittperator.js +++ b/twittperator.js @@ -1374,10 +1374,13 @@ function ReTweet(id) { // {{{ }); } // }}} function setup() { // {{{ + let SubCommands = [ + ]; + commands.addUserCommand(["tw[ittperator]"], "Twittperator command", - function(arg) { - let bang = arg.bang; - arg = arg.string.replace(/%URL%/g, liberator.modules.buffer.URL) + function(args) { + let bang = args.bang; + let arg = args.literalArg.replace(/%URL%/g, liberator.modules.buffer.URL) .replace(/%TITLE%/g, liberator.modules.buffer.title); if (bang && arg.match(/^\?\s*(.*)/)) |