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

show completions automatically for commands like commandline.open(":", "buffer! ")

This commit is contained in:
Martin Stubenschrott
2008-06-20 13:07:29 +00:00
parent adcdbde3db
commit 3c4160116b

View File

@@ -441,6 +441,15 @@ liberator.CommandLine = function () //{{{
setCommand(currentCommand); setCommand(currentCommand);
commandWidget.focus(); commandWidget.focus();
// open the completion list automatically if wanted
if (/\s/.test(cmd) &&
liberator.options["wildoptions"].indexOf("auto") >= 0 &&
extendedMode == liberator.modes.EX)
{
var [start, compl] = liberator.completion.ex(cmd);
this.setCompletions(compl, start);
}
}, },
// normally used when pressing esc, does not execute a command // normally used when pressing esc, does not execute a command