changeset 30ab0f36e90b in /home/hg/repos/gajim
branches: gtk3
details:http://hg.gajim.org/gajim?cmd=changeset;node=30ab0f36e90b
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 2ccef393f0bd -r 30ab0f36e90b src/chat_control.py
--- a/src/chat_control.py Fri Aug 02 11:44:15 2013 +0200
+++ b/src/chat_control.py Sun Aug 04 22:08:41 2013 +0400
@@ -1437,7 +1437,8 @@
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
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits