From 0c8dc35413ebfe36d57fbe85161beb6c829781b0 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Thu, 23 Oct 2008 11:29:16 +0000 Subject: [PATCH] improved :viewsource, thanks Juergen --- AUTHORS | 1 + content/buffer.js | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index 76bb5c6c..7c1d424e 100644 --- a/AUTHORS +++ b/AUTHORS @@ -13,6 +13,7 @@ Inactive/former developers: * Marco Candrian (mac@calmar.ws) Patches (in no special order): + * Juergen Descher * Kazuo (count support for ctrl-^) * Daniel Schaffrath (;b support) * Dominik Meister (:b# support and other buffer related commands) diff --git a/content/buffer.js b/content/buffer.js index ebfe4634..de559cad 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -942,8 +942,9 @@ function Buffer() //{{{ "View source code of current document", function (args, special) { buffer.viewSource(args.arguments[0], special); }, { - argCount: "1", - bang: true + argCount: "?", + bang: true, + completer: function (filter) completion.url(filter, "bhf") }); commands.add(["zo[om]"],