Disable last message correction for commands. Fixes #7405

This commit is contained in:
Denis Fomin 2013-08-04 22:08:41 +04:00
parent 20ba20bae2
commit fcd5bcd762
1 changed files with 2 additions and 1 deletions

View File

@ -1437,7 +1437,8 @@ class ChatControlBase(MessageControl, ChatCommandProcessor, CommandTools):
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) self.orig_msg = msg_buf.get_text(start_iter, end_iter, False)
if pos == size and size > 0 and direction == 'up' and \ 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.correcting = True
context = self.msg_textview.get_style_context() context = self.msg_textview.get_style_context()
state = Gtk.StateFlags.NORMAL state = Gtk.StateFlags.NORMAL