1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-20 21:28:00 +01:00

Fix merging of history-command and history-search.

This commit is contained in:
Kris Maglione
2010-11-12 15:32:39 -05:00
parent 733e3a1bd3
commit 1e87732602

View File

@@ -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