From e7b0dbced518e839ec8ede5afe88602245c531da Mon Sep 17 00:00:00 2001 From: Abhilash Raj Date: Sat, 5 Jun 2021 09:58:02 -0700 Subject: [PATCH] Use the text in history instead of bytes. --- qweechat/input.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qweechat/input.py b/qweechat/input.py index 7c85caf..192e5d4 100644 --- a/qweechat/input.py +++ b/qweechat/input.py @@ -76,7 +76,7 @@ class InputLineEdit(QtGui.QLineEdit): QtGui.QLineEdit.keyPressEvent(self, event) 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.textSent.emit(self.text()) self.clear()