Handle empty lines correctly in debug console. Fixes #157.
This commit is contained in:
parent
12a72a4269
commit
6af33d0e85
@ -79,8 +79,8 @@ class ConsoleLineEdit(misc.CommandLineEdit):
|
|||||||
text = self.text()
|
text = self.text()
|
||||||
if text:
|
if text:
|
||||||
self._history.append(text)
|
self._history.append(text)
|
||||||
self.push(text)
|
self.push(text)
|
||||||
self.setText('')
|
self.setText('')
|
||||||
|
|
||||||
def push(self, line):
|
def push(self, line):
|
||||||
"""Push a line to the interpreter."""
|
"""Push a line to the interpreter."""
|
||||||
|
Loading…
Reference in New Issue
Block a user