changeset 364f9f72bc0d in /home/hg/repos/gajim

branches: 
details:http://hg.gajim.org/gajim?cmd=changeset;node=364f9f72bc0d
description: Disable last message correction for commands. Fixes #7405

diffstat:

 src/chat_control.py |  3 ++-
 1 файлов изменено, 2 вставок(+), 1 удалений(-)

различия (13 строк):

diff -r ee9eefe5ed53 -r 364f9f72bc0d src/chat_control.py
--- a/src/chat_control.py       Sun Aug 04 19:17:55 2013 +0400
+++ b/src/chat_control.py       Sun Aug 04 22:08:41 2013 +0400
@@ -1402,7 +1402,8 @@
             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(
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to