diff --git a/qutebrowser/widgets/console.py b/qutebrowser/widgets/console.py index d1498d946..db210b8bc 100644 --- a/qutebrowser/widgets/console.py +++ b/qutebrowser/widgets/console.py @@ -71,9 +71,10 @@ class ConsoleLineEdit(CommandLineEdit): """Execute the line of code which was entered.""" self.history.stop() text = self.text() - self.history.append(text) - self.push(text) - self.setText('') + if text: + self.history.append(text) + self.push(text) + self.setText('') def push(self, line): """Push a line to the interpreter."""