diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index a01af5c9d..bc9689d4d 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -178,11 +178,9 @@ class RunDialog extends ModalDialog.ModalDialog { } _run(input, inTerminal) { - input = input.trim(); + input = this._history.addItem(input); // trims input let command = input; - if (input) - this._history.addItem(input); this._commandError = false; let f; if (this._enableInternalCommands)