From 3c4160116b01b2f295493627d8849c35251ecbb5 Mon Sep 17 00:00:00 2001 From: Martin Stubenschrott Date: Fri, 20 Jun 2008 13:07:29 +0000 Subject: [PATCH] show completions automatically for commands like commandline.open(":", "buffer! ") --- content/ui.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/content/ui.js b/content/ui.js index 6eddb8eb..bf65b841 100644 --- a/content/ui.js +++ b/content/ui.js @@ -441,6 +441,15 @@ liberator.CommandLine = function () //{{{ setCommand(currentCommand); 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