mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-22 00:37:58 +01:00
allow :set no<TAB> to be completed with the "no"-prefix version of all boolean
options
This commit is contained in:
@@ -319,7 +319,8 @@ function get_options_completions(filter, unfiltered)/*{{{*/
|
|||||||
if (no_mode && $_[TYPE] != "boolean") return false;
|
if (no_mode && $_[TYPE] != "boolean") return false;
|
||||||
else return true;
|
else return true;
|
||||||
}).map(function($_) {
|
}).map(function($_) {
|
||||||
return [$_[COMMANDS][0], $_[SHORTHELP]];
|
var prefix = no_mode ? 'no' : '';
|
||||||
|
return [prefix + $_[COMMANDS][0], $_[SHORTHELP]];
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user