console: Ignore empty texts
This commit is contained in:
parent
4cab864ea0
commit
1a91972a5c
@ -71,9 +71,10 @@ class ConsoleLineEdit(CommandLineEdit):
|
|||||||
"""Execute the line of code which was entered."""
|
"""Execute the line of code which was entered."""
|
||||||
self.history.stop()
|
self.history.stop()
|
||||||
text = self.text()
|
text = self.text()
|
||||||
self.history.append(text)
|
if text:
|
||||||
self.push(text)
|
self.history.append(text)
|
||||||
self.setText('')
|
self.push(text)
|
||||||
|
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