summaryrefslogtreecommitdiff
path: root/poezio/windows/inputs.py
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2015-10-25 13:15:06 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2016-06-11 20:49:46 +0100
commitd4003d1d26b99feffa87c33ca23a63206f38a38d (patch)
treef14f5bf26036ad9f6eb020b4944cfad377e7c3b1 /poezio/windows/inputs.py
parent332a5c2553db41de777473a1e1be9cd1522c9496 (diff)
downloadpoezio-d4003d1d26b99feffa87c33ca23a63206f38a38d.tar.gz
poezio-d4003d1d26b99feffa87c33ca23a63206f38a38d.tar.bz2
poezio-d4003d1d26b99feffa87c33ca23a63206f38a38d.tar.xz
poezio-d4003d1d26b99feffa87c33ca23a63206f38a38d.zip
Replace two lists of characters with strings.
Diffstat (limited to 'poezio/windows/inputs.py')
-rw-r--r--poezio/windows/inputs.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/poezio/windows/inputs.py b/poezio/windows/inputs.py
index 80f0c900..f204f1cb 100644
--- a/poezio/windows/inputs.py
+++ b/poezio/windows/inputs.py
@@ -30,7 +30,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']
+ text_attributes = 'bou1234567t'
clipboard = '' # A common clipboard for all the inputs, this makes
# it easy cut and paste text between various input
def __init__(self):
@@ -463,8 +463,7 @@ class Input(Win):
(\x0E to \x19 instead of \x19 + attr). We do not use any }
char in this version
"""
- chars = format_chars[:]
- chars.append('\n')
+ chars = format_chars + '\n'
if y is not None and x is not None:
self.move(y, x)
format_char = find_first_format_char(text, chars)