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

Dont show substring preview when caret isnt at end of line. Fix unanchored substring generation.

This commit is contained in:
Kris Maglione
2008-11-28 09:02:03 +00:00
parent 25d983ec01
commit 082d9d12fa
4 changed files with 8 additions and 9 deletions

View File

@@ -695,9 +695,8 @@ function Options() //{{{
else if (prefix == "no")
return;
let [name, value] = context.filter.split("=", 2);
let option = opt.option;
context.advance(name.length + 1);
context.advance(context.filter.indexOf("=") + 1);
if (!option)
context.highlight(0, name.length, "SPELLCHECK");
@@ -713,7 +712,6 @@ function Options() //{{{
});
}
context.title = ["Option Value"];
completion.optionValue(context, opt.name, opt.operator);
},
literal: true,