From 1e877326028a0632ca75b3f5270efe89e545a83f Mon Sep 17 00:00:00 2001 From: Kris Maglione Date: Fri, 12 Nov 2010 15:32:39 -0500 Subject: [PATCH] Fix merging of history-command and history-search. --- common/content/commandline.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/common/content/commandline.js b/common/content/commandline.js index a0a4922e..85bbdccd 100644 --- a/common/content/commandline.js +++ b/common/content/commandline.js @@ -475,7 +475,12 @@ const CommandLine = Module("commandline", { this.widgets.prompt = prompt; this.widgets.command = cmd || ""; - this._history = CommandLine.History(this.widgets.active.command.inputField, (modes.extended == modes.EX) ? "command" : "search"); + let hist = // Hack: + extendedMode == modes.EX ? "command" : + extendedMode & (modes.FIND_FORWARD | modes.FIND_BACKWARD) ? "search" : null; + + if (hist) + this._history = CommandLine.History(this.widgets.active.command.inputField, hist); this._completions = CommandLine.Completions(this.widgets.active.command.inputField); // open the completion list automatically if wanted