]> jfr.im git - irc/weechat/qweechat.git/commitdiff
Use the text in history instead of bytes.
authorAbhilash Raj <redacted>
Sat, 5 Jun 2021 16:58:02 +0000 (09:58 -0700)
committerAbhilash Raj <redacted>
Sat, 5 Jun 2021 16:58:02 +0000 (09:58 -0700)
qweechat/input.py

index 7c85caf47583d01ba7e3e567b650edea1c30073e..192e5d4ac776143b06925d15d8b0f68eb7aad8b7 100644 (file)
@@ -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()