From 4380fb5197fa99e5b356fbae0c8d7b96720d2279 Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Sun, 4 Aug 2013 22:08:41 +0400 Subject: [PATCH] Disable last message correction for commands. Fixes #7405 --- src/chat_control.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/chat_control.py b/src/chat_control.py index a44fd4dfc..ce41e4c9a 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1402,7 +1402,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools): self.orig_msg = msg_buf.get_text(start_iter, end_iter, 0).decode( 'utf-8') if pos == size and size > 0 and direction == 'up' and \ - msg_type == 'sent' and not self.correcting: + msg_type == 'sent' and not self.correcting and not \ + history[pos - 1].startswith('/'): self.correcting = True self.old_message_tv_color = self.msg_textview.get_style().base[0] self.msg_textview.modify_base(gtk.STATE_NORMAL, gtk.gdk.color_parse(