From 875fa5276128fc1c543e6cd1ad7a135028233e34 Mon Sep 17 00:00:00 2001 From: Doug Kearns Date: Fri, 15 Jun 2007 11:08:48 +0000 Subject: [PATCH] allow :set no to be completed with the "no"-prefix version of all boolean options --- chrome/content/vimperator/completion.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chrome/content/vimperator/completion.js b/chrome/content/vimperator/completion.js index 326892a9..1e0ac2be 100644 --- a/chrome/content/vimperator/completion.js +++ b/chrome/content/vimperator/completion.js @@ -319,7 +319,8 @@ function get_options_completions(filter, unfiltered)/*{{{*/ if (no_mode && $_[TYPE] != "boolean") return false; else return true; }).map(function($_) { - return [$_[COMMANDS][0], $_[SHORTHELP]]; + var prefix = no_mode ? 'no' : ''; + return [prefix + $_[COMMANDS][0], $_[SHORTHELP]]; });