1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:12:26 +01:00

Somewhat more resilient File.expandPath and File#init. Fixes Pentadactyl on wine.

This commit is contained in:
Kris Maglione
2010-09-21 09:02:55 -04:00
parent 46673bfc76
commit 21a510588c
2 changed files with 19 additions and 12 deletions

View File

@@ -912,9 +912,9 @@ const Commands = Module("commands", {
}
// dynamically get completions as specified with the command's completer function
context.highlight();
let command = cmd && commands.get(cmd);
if (!command) {
context.highlight();
context.highlight(0, cmd && cmd.length, "SPELLCHECK");
return;
}