From 13dde4c5fc0979fcce43fa0d99b5f3a582cb6b56 Mon Sep 17 00:00:00 2001 From: anekos Date: Tue, 4 May 2010 03:43:10 +0000 Subject: どの URL を短縮したかわかるような表示に git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@37347 d0d07461-0603-4401-acd4-de1884942a52 --- bitly.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bitly.js') diff --git a/bitly.js b/bitly.js index e8db8dd..5d84906 100644 --- a/bitly.js +++ b/bitly.js @@ -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); }); }, { -- cgit v1.2.3