diff options
author | anekos | 2010-05-04 03:43:10 +0000 |
---|---|---|
committer | anekos | 2010-05-04 03:43:10 +0000 |
commit | 13dde4c5fc0979fcce43fa0d99b5f3a582cb6b56 (patch) | |
tree | af8277cf6c9a21eebf65cae8bbff7a2902ad749e | |
parent | 30df3f6389d669340a1501d313d58850e6665fdf (diff) | |
download | vimperator-plugins-13dde4c5fc0979fcce43fa0d99b5f3a582cb6b56.tar.bz2 |
どの URL を短縮したかわかるような表示に
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37347 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | bitly.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -138,11 +138,11 @@ let PLUGIN_INFO = [name], 'Copy ' + domain + ' url', function (args) { - let url = util.stringToURLArray(args.literalArg)[0]; + let url = args.literalArg ? util.stringToURLArray(args.literalArg)[0] : buffer.URL; shorten(url || buffer.URL, domain, function (short) { util.copyToClipboard(short); - liberator.echo('`' + short + "' was copied to clipboard."); + liberator.echo(short + ' <= ' + url); }); }, { |