Skip to content

Commit e0a4979

Browse files
authored
Merge pull request #4 from MarxSoul55/master
Fixing apparent newline bug with `list` type question.
2 parents b552ee7 + 249646f commit e0a4979

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

PyInquirer/prompts/list.py

+4-7
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,11 @@ def get_prompt_tokens(cli):
129129

130130
# assemble layout
131131
layout = HSplit([
132-
Window(content=TokenListControl(get_prompt_tokens, align_center=False)),
132+
Window(height=D.exact(1),
133+
content=TokenListControl(get_prompt_tokens)
134+
),
133135
ConditionalContainer(
134-
Window(
135-
ic,
136-
width=D.exact(43),
137-
height=D(min=3),
138-
scroll_offsets=ScrollOffsets(top=1, bottom=1)
139-
),
136+
Window(ic),
140137
filter=~IsDone()
141138
)
142139
])

0 commit comments

Comments
 (0)