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