summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2014-02-17 21:44:40 +0100
committermathieui <mathieui@mathieui.net>2014-02-17 21:44:40 +0100
commit35f3f53334461eba1a579b69470ca1af40b446dd (patch)
tree84a067f7b443f53fb65303fe509737ab8ef69ead /src
parented2ac06511037f4b8dd8dd488bb1c369ed9fb45e (diff)
downloadpoezio-35f3f53334461eba1a579b69470ca1af40b446dd.tar.gz
poezio-35f3f53334461eba1a579b69470ca1af40b446dd.tar.bz2
poezio-35f3f53334461eba1a579b69470ca1af40b446dd.tar.xz
poezio-35f3f53334461eba1a579b69470ca1af40b446dd.zip
Fix a traceback in the commandinput
When the connection lags and the user presses tab, poezio will insert a tab inside the input, wich has now a specific formatting. This caused poezio to crash.
Diffstat (limited to 'src')
-rw-r--r--src/windows.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/windows.py b/src/windows.py
index 2c9872e6..6b0523a2 100644
--- a/src/windows.py
+++ b/src/windows.py
@@ -1138,6 +1138,7 @@ class Input(Win):
passing the list of items that can be used to complete. The completion can be used
in a very flexible way.
"""
+ text_attributes = ['b', 'o', 'u', '1', '2', '3', '4', '5', '6', '7', 't']
clipboard = '' # A common clipboard for all the inputs, this makes
# it easy cut and paste text between various input
def __init__(self):
@@ -1738,7 +1739,6 @@ class MessageInput(HistoryInput):
Also letting the user enter colors or other text markups
"""
history = list() # The history is common to all MessageInput
- text_attributes = ['b', 'o', 'u', '1', '2', '3', '4', '5', '6', '7', 't']
def __init__(self):
HistoryInput.__init__(self)