Handle empty lines correctly in debug console. Fixes #157.

This commit is contained in:
Florian Bruhin 2014-10-07 17:56:39 +02:00
parent 12a72a4269
commit 6af33d0e85

View File

@ -79,8 +79,8 @@ class ConsoleLineEdit(misc.CommandLineEdit):
text = self.text()
if text:
self._history.append(text)
self.push(text)
self.setText('')
self.push(text)
self.setText('')
def push(self, line):
"""Push a line to the interpreter."""