Skip to content

Commit 78bcd76

Browse files
author
Jairo Llopis
committed
fixup! Allow multiline input
1 parent c55af90 commit 78bcd76

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

copier/config/user_data.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ def ask_interactively(
6969
message += f"{bold | question}? Format: {type_name}\n{emoji} "
7070
lexer_map = {"json": JsonLexer, "yaml": YamlLexer}
7171
lexer = lexer_map.get(type_name)
72+
# HACK https://github.com/prompt-toolkit/python-prompt-toolkit/issues/1071
73+
# FIXME When fixed, use prompt toolkit too for choices and bools
7274
# Use the correct method to ask
7375
if type_name == "bool":
7476
return ask(message, default)

0 commit comments

Comments
 (0)