aboutsummaryrefslogtreecommitdiffstats
path: root/bitly.js
diff options
context:
space:
mode:
authoranekos2010-05-04 03:43:04 +0000
committeranekos2010-05-04 03:43:04 +0000
commit30df3f6389d669340a1501d313d58850e6665fdf (patch)
tree9c390819ac057be45d1f47cc4d69e2bef16bf0d8 /bitly.js
parent26a71dbf20c009d5fa3e20aa44cea8c0b9064653 (diff)
downloadvimperator-plugins-30df3f6389d669340a1501d313d58850e6665fdf.tar.bz2
キーワードなどに対応
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37346 d0d07461-0603-4401-acd4-de1884942a52
Diffstat (limited to 'bitly.js')
-rw-r--r--bitly.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/bitly.js b/bitly.js
index a648013..e8db8dd 100644
--- a/bitly.js
+++ b/bitly.js
@@ -138,7 +138,9 @@ let PLUGIN_INFO =
[name],
'Copy ' + domain + ' url',
function (args) {
- shorten(args.literalArg || buffer.URL, domain, function (short) {
+ let url = util.stringToURLArray(args.literalArg)[0];
+
+ shorten(url || buffer.URL, domain, function (short) {
util.copyToClipboard(short);
liberator.echo('`' + short + "' was copied to clipboard.");
});