mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-21 07:07:58 +01:00
Fix highlighting and reporting of unknown command.
This commit is contained in:
@@ -1239,7 +1239,8 @@ var Commands = Module("commands", {
|
|||||||
// dynamically get completions as specified with the command's completer function
|
// dynamically get completions as specified with the command's completer function
|
||||||
context.highlight();
|
context.highlight();
|
||||||
if (!command) {
|
if (!command) {
|
||||||
context.highlight(0, args.commandName && args.commandName.length, "SPELLCHECK");
|
context.message = "No such command: " + match.cmd;
|
||||||
|
context.highlight(0, match.cmd.length, "SPELLCHECK");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -999,6 +999,7 @@ var Options = Module("options", {
|
|||||||
let opt = options.parseOpt(filter, modifiers);
|
let opt = options.parseOpt(filter, modifiers);
|
||||||
let prefix = opt.prefix;
|
let prefix = opt.prefix;
|
||||||
|
|
||||||
|
context.highlight();
|
||||||
if (context.filter.indexOf("=") == -1) {
|
if (context.filter.indexOf("=") == -1) {
|
||||||
if (false && prefix)
|
if (false && prefix)
|
||||||
context.filters.push(function ({ item }) item.type == "boolean" || prefix == "inv" && isArray(item.values));
|
context.filters.push(function ({ item }) item.type == "boolean" || prefix == "inv" && isArray(item.values));
|
||||||
|
|||||||
Reference in New Issue
Block a user