mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-24 09:42:28 +01:00
Add Option.has(). Improve JS completion.
This commit is contained in:
@@ -144,7 +144,7 @@ liberator.CommandLine = function () //{{{
|
||||
var promptCompleter = null;
|
||||
|
||||
liberator.registerCallback("change", liberator.modes.EX, function (command) {
|
||||
if (liberator.options["wildoptions"].indexOf("auto") >= 0)
|
||||
if (liberator.options.get("wildoptions").has("auto"))
|
||||
autocompleteTimer.tell(command);
|
||||
else
|
||||
completionIndex = UNINITIALIZED;
|
||||
@@ -570,7 +570,7 @@ liberator.CommandLine = function () //{{{
|
||||
|
||||
// open the completion list automatically if wanted
|
||||
if (/\s/.test(cmd) &&
|
||||
liberator.options["wildoptions"].indexOf("auto") >= 0 &&
|
||||
liberator.options.get("wildoptions").has("auto") >= 0 &&
|
||||
extendedMode == liberator.modes.EX)
|
||||
{
|
||||
var [start, compl] = liberator.completion.ex(cmd);
|
||||
|
||||
Reference in New Issue
Block a user