Commit 35f3f533 authored by mathieui's avatar mathieui

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.
parent ed2ac065
...@@ -1138,6 +1138,7 @@ class Input(Win): ...@@ -1138,6 +1138,7 @@ class Input(Win):
passing the list of items that can be used to complete. The completion can be used passing the list of items that can be used to complete. The completion can be used
in a very flexible way. 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 clipboard = '' # A common clipboard for all the inputs, this makes
# it easy cut and paste text between various input # it easy cut and paste text between various input
def __init__(self): def __init__(self):
...@@ -1738,7 +1739,6 @@ class MessageInput(HistoryInput): ...@@ -1738,7 +1739,6 @@ class MessageInput(HistoryInput):
Also letting the user enter colors or other text markups Also letting the user enter colors or other text markups
""" """
history = list() # The history is common to all MessageInput 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): def __init__(self):
HistoryInput.__init__(self) HistoryInput.__init__(self)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment