1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 22:17:59 +01:00

allow :set no<TAB> to be completed with the "no"-prefix version of all boolean

options
This commit is contained in:
Doug Kearns
2007-06-15 11:08:48 +00:00
parent d55295929d
commit 875fa52761

View File

@@ -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]];
});