1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 10:57:58 +01:00

Fix highlighting and reporting of unknown command.

This commit is contained in:
Kris Maglione
2010-12-31 21:39:31 -05:00
parent 5438c7d61d
commit 54a3974a2a
2 changed files with 3 additions and 1 deletions

View File

@@ -1239,7 +1239,8 @@ var Commands = Module("commands", {
// dynamically get completions as specified with the command's completer function
context.highlight();
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;
}