Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-10-29 00:15:46 +0300
committerYann Leboulanger <asterix@lagaule.org>2009-10-29 00:15:46 +0300
commit8e98b3954baca4fac1e8f446aef3b066354ff0f6 (patch)
tree9da7dfeae48dd889adc91b1ab7ef269e9da0f0f1
parentd6f4241102f5c95e0ec4d76df8247227257e47a8 (diff)
fix traceback with bash completion
-rw-r--r--src/groupchat_control.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/groupchat_control.py b/src/groupchat_control.py
index 68659aef1..7e9c35afa 100644
--- a/src/groupchat_control.py
+++ b/src/groupchat_control.py
@@ -1844,8 +1844,8 @@ class GroupchatControl(ChatControlBase):
else:
add = ' '
start_iter = end_iter.copy()
- if self.last_key_tabs and with_refer_to_nick_char or \
- text[-1] == ' ':
+ if self.last_key_tabs and with_refer_to_nick_char or (text and \
+ text[-1] == ' '):
# have to accomodate for the added space from last
# completion
# gc_refer_to_nick_char may be more than one char!