don't add a space at the begining of buffer when we add an emot
This commit is contained in:
parent
ac8c2920f6
commit
c7583c6711
|
@ -467,7 +467,11 @@ class Chat:
|
|||
def append_emoticon(w, d):
|
||||
jid = self.get_active_jid()
|
||||
message_textview = self.message_textviews[jid]
|
||||
message_textview.get_buffer().insert_at_cursor(" %s " % d)
|
||||
buffer = message_textview.get_buffer()
|
||||
if buffer.get_char_count():
|
||||
buffer.insert_at_cursor(' %s ' % d)
|
||||
else:
|
||||
buffer.insert_at_cursor('%s ' % d)
|
||||
message_textview.grab_focus()
|
||||
|
||||
counter = 0
|
||||
|
|
Loading…
Reference in New Issue