From fcd5bcd762ca0a783a002e0116a2df7d03d2af35 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 dbac669a0..7114c33f7 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1437,7 +1437,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: + msg_type == 'sent' and not self.correcting and not \ + history[pos - 1].startswith('/'): self.correcting = True context = self.msg_textview.get_style_context() state = Gtk.StateFlags.NORMAL