Use the text in history instead of bytes.

This commit is contained in:
Abhilash Raj 2021-06-05 09:58:02 -07:00
parent cb2f9d28c1
commit e7b0dbced5
No known key found for this signature in database
GPG key ID: 9D9B2BA061D0A67C

View file

@ -76,7 +76,7 @@ class InputLineEdit(QtGui.QLineEdit):
QtGui.QLineEdit.keyPressEvent(self, event) QtGui.QLineEdit.keyPressEvent(self, event)
def _input_return_pressed(self): def _input_return_pressed(self):
self._history.append(self.text().encode('utf-8')) self._history.append(self.text())
self._history_index = len(self._history) self._history_index = len(self._history)
self.textSent.emit(self.text()) self.textSent.emit(self.text())
self.clear() self.clear()