changeset d3f08a194726 in /home/hg/repos/gajim
branches: gajim_0.16
details:http://hg.gajim.org/gajim?cmd=changeset;node=d3f08a194726
description: Disable last message correction for commands. Fixes #7405
diffstat:
src/chat_control.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r bd347c3e27dc -r d3f08a194726 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