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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user