From d266cdc384686ca34f771d3134a48ee2882a32fc Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Wed, 8 Oct 2008 08:38:16 +0000 Subject: [PATCH] fix return values from completers for 'pageinfo' and 'showstatuslinks' --- content/buffer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/buffer.js b/content/buffer.js index c8ae29e5..3ecee3f0 100644 --- a/content/buffer.js +++ b/content/buffer.js @@ -376,7 +376,7 @@ liberator.Buffer = function () //{{{ "stringlist", "\\bprev|previous\\b,^<$,^(<<|«)$,^(<|«),(<|«)$"); liberator.options.add(["pageinfo", "pa"], "Desired info on :pa[geinfo]", "charlist", "gfm", - { completer: function (filter) [0, [[k, v[1]] for ([k, v] in Iterator(pageInfo))]] }); + { completer: function (filter) [[k, v[1]] for ([k, v] in Iterator(pageInfo))] }); liberator.options.add(["scroll", "scr"], "Number of lines to scroll with and commands", @@ -387,11 +387,11 @@ liberator.Buffer = function () //{{{ "Show the destination of the link under the cursor in the status bar", "number", 1, { - completer: function (filter) [0, [ + completer: function (filter) [ ["0", "Don't show link destination"], ["1", "Show the link in the status line"], ["2", "Show the link in the command line"] - ]], + ], validator: function (value) value >= 0 && value <= 2 });