Fix a little issue on the default values of text-multi
This commit is contained in:
parent
cc0449f73b
commit
6a0346a12a
1 changed files with 4 additions and 1 deletions
|
@ -158,7 +158,10 @@ class TextMultiWin(FieldInput, windows.Win):
|
|||
self.val_pos = 0
|
||||
self.edition_input = None
|
||||
if not isinstance(self.options, list):
|
||||
if isinstance(self.options, str):
|
||||
self.options = [self.options]
|
||||
else:
|
||||
self.options = []
|
||||
self.options.append('')
|
||||
|
||||
def do_command(self, key):
|
||||
|
|
Loading…
Reference in a new issue