mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-23 13:52:26 +01:00
Dont try to preview a substring when no completion context
This commit is contained in:
@@ -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")
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user