remove wrong call to decode()
This commit is contained in:
parent
554c3694c8
commit
9d9bbce366
|
@ -268,7 +268,6 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
end = _buffer.get_iter_at_mark(position)
|
end = _buffer.get_iter_at_mark(position)
|
||||||
|
|
||||||
text = _buffer.get_text(start, end, False)
|
text = _buffer.get_text(start, end, False)
|
||||||
text = text.decode('utf8')
|
|
||||||
|
|
||||||
splitted = text.split()
|
splitted = text.split()
|
||||||
|
|
||||||
|
@ -785,8 +784,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
message_textview = widget
|
message_textview = widget
|
||||||
message_buffer = message_textview.get_buffer()
|
message_buffer = message_textview.get_buffer()
|
||||||
start_iter, end_iter = message_buffer.get_bounds()
|
start_iter, end_iter = message_buffer.get_bounds()
|
||||||
message = message_buffer.get_text(start_iter, end_iter, False).decode(
|
message = message_buffer.get_text(start_iter, end_iter, False)
|
||||||
'utf-8')
|
|
||||||
xhtml = self.msg_textview.get_xhtml()
|
xhtml = self.msg_textview.get_xhtml()
|
||||||
|
|
||||||
# construct event instance from binding
|
# construct event instance from binding
|
||||||
|
@ -1366,8 +1364,7 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
|
||||||
# whatever is already typed
|
# whatever is already typed
|
||||||
start_iter = msg_buf.get_start_iter()
|
start_iter = msg_buf.get_start_iter()
|
||||||
end_iter = msg_buf.get_end_iter()
|
end_iter = msg_buf.get_end_iter()
|
||||||
self.orig_msg = msg_buf.get_text(start_iter, end_iter, False).decode(
|
self.orig_msg = msg_buf.get_text(start_iter, end_iter, False)
|
||||||
'utf-8')
|
|
||||||
pos += -1 if direction == 'up' else +1
|
pos += -1 if direction == 'up' else +1
|
||||||
if pos == -1:
|
if pos == -1:
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in New Issue