From 35f3f53334461eba1a579b69470ca1af40b446dd Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 17 Feb 2014 21:44:40 +0100 Subject: 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. --- src/windows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3