diff --git a/js/ui/runDialog.js b/js/ui/runDialog.js index 114aa1b26..b847f0d11 100644 --- a/js/ui/runDialog.js +++ b/js/ui/runDialog.js @@ -180,7 +180,8 @@ class RunDialog extends ModalDialog.ModalDialog { _run(input, inTerminal) { let command = input; - this._history.addItem(input); + if (input) + this._history.addItem(input); this._commandError = false; let f; if (this._enableInternalCommands)