diff --git a/src/chat_control.py b/src/chat_control.py index e17afb6dd..50330715e 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1394,8 +1394,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): end_iter = msg_buf.get_end_iter() self.orig_msg = msg_buf.get_text(start_iter, end_iter, False) if pos == size and size > 0 and direction == 'up' and \ - msg_type == 'sent' and not self.correcting and not \ - history[pos - 1].startswith('/'): + msg_type == 'sent' and not self.correcting and (not \ + history[pos - 1].startswith('/') or history[pos - 1].startswith('/me')): self.correcting = True context = self.msg_textview.get_style_context() state = Gtk.StateFlags.NORMAL @@ -3032,14 +3032,14 @@ class ChatControl(ChatControlBase): xhtml = None if row[2].startswith('Message was corrected. Last message was:\n %s') % \ old_txt @@ -1353,6 +1356,9 @@ class ConversationTextview(GObject.GObject): if other_text_tag: # note that color of /me may be overwritten in gc_control text_tags.append(other_text_tag) + if text.startswith('/me'): + mark1 = buffer_.create_mark(None, buffer_.get_end_iter(), + left_gravity=True) else: # not status nor /me if gajim.config.get('chat_merge_consecutive_nickname'): if kind != old_kind or self.just_cleared: