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

Dont try to preview a substring when no completion context

This commit is contained in:
Kris Maglione
2008-11-27 12:04:15 +00:00
parent 4c8e5ac3b0
commit d93e75aea2

View File

@@ -308,7 +308,7 @@ function CommandLine() //{{{
function previewSubstring()
{
if (!options.get("wildoptions").has("auto"))
if (!options.get("wildoptions").has("auto") || !completionContext)
return;
// Kludge. Major kludge.
let editor = commandWidget.inputField.editor;
@@ -818,7 +818,6 @@ function CommandLine() //{{{
onEvent: function onEvent(event)
{
let command = this.getCommand();
let editor = commandWidget.inputField.editor;
try
{
@@ -826,6 +825,7 @@ function CommandLine() //{{{
editor.deleteNode(node.firstChild.nextSibling);
}
catch (e) {}
let command = this.getCommand();
if (event.type == "blur")
{