Leave command mode on return press

This commit is contained in:
Florian Bruhin 2014-04-25 09:24:40 +02:00
parent b4b72f07b7
commit 74374df5fd

View File

@ -274,10 +274,9 @@ class _Command(QLineEdit):
'/': self.got_search,
'?': self.got_search_rev,
}
self.history.stop()
text = self.text()
self.history.append(text)
self.setText('')
modes.leave("command")
if text[0] in signals:
signals[text[0]].emit(text.lstrip(text[0]))