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

Highlight invalid option names in :set

This commit is contained in:
Kris Maglione
2008-10-15 20:48:34 +00:00
parent 66123ab4a4
commit 2b6b080f0c

View File

@@ -744,6 +744,10 @@ function Options() //{{{
let opt = parseOpt(filter, modifiers);
let option = opt.option;
commandline.highlight(0, 0, "SPELLCHECK");
if (!option) /* FIXME: Kludge. */
commandline.highlight(0, name.length, "SPELLCHECK");
if (opt.get || opt.reset || !option || prefix)
return [0, []];