diff options
author | anekos | 2008-11-29 20:43:11 +0000 |
---|---|---|
committer | anekos | 2008-11-29 20:43:11 +0000 |
commit | c1175bb5642e03ca0e702d459d5d066f8b1b0d33 (patch) | |
tree | b3c448f47bc82b0cc89e561690d464ab2b2b70ee | |
parent | 15806fcc8564740ecd009e9f6c6312dfdee8b609 (diff) | |
download | vimperator-plugins-c1175bb5642e03ca0e702d459d5d066f8b1b0d33.tar.bz2 |
引数無しの時は、現在のページを対象とするようにした。
git-svn-id: http://svn.coderepos.org/share/lang/javascript/vimperator-plugins/trunk@25367 d0d07461-0603-4401-acd4-de1884942a52
-rw-r--r-- | peekpage.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/peekpage.js b/peekpage.js index c9796a6..535032e 100644 --- a/peekpage.js +++ b/peekpage.js @@ -3,7 +3,7 @@ * @name peekpage.js * @description peek page in commandline * @author hogelog - * @version 0.1 + * @version 0.2 * ==/VimperatorPlugin== * * COMMANDS: @@ -48,12 +48,12 @@ commands.addUserCommand(['peekpage'], 'Peek Page in Commandline', function (args){ - peekview(args.string); + peekview(args.string || buffer.URL); }, option); commands.addUserCommand(['peeksrc'], 'Peek Page Source in Commandline', function (args){ - var http = util.httpGet(args.string); + var http = util.httpGet(args.string || buffer.URL); if (http){ liberator.echo(http.responseText, commandline.FORCE_MULTILINE); } |