From 9b3e28cb4217654cc8df25beb8e729a66a4492ef Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Mon, 4 Oct 2010 18:09:52 -0400 Subject: [PATCH] Fix the completion list popping up after the command line closes in corner cases. --- common/content/commandline.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index 07d0d560..98b62274 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -225,7 +225,7 @@ const CommandLine = Module("commandline", { /////////////////////////////////////////////////////////////////////////////{{{ this._autocompleteTimer = Timer(200, 500, function autocompleteTell(tabPressed) { - dactyl.trapErrors(function () { + dactyl.trapErrors(function _autocompleteTell() { if (!events.feedingKeys && self._completions && options["autocomplete"].length) { self._completions.complete(true, false); if (self._completions) @@ -492,6 +492,8 @@ const CommandLine = Module("commandline", { }, currentExtendedMode: Modes.boundProperty(), + _completions: Modes.boundProperty(), + _history: Modes.boundProperty(), _lastClearable: Modes.boundProperty(), _keepCommand: Modes.boundProperty(),