Merge pull request #648 from jrfondren/no-hang-on-invalid-projname
use displayLine rather than display with displayCategory prompt
This commit is contained in:
commit
ebbafec4dd
1 changed files with 1 additions and 1 deletions
|
|
@ -140,7 +140,7 @@ proc prompt*(forcePrompts: ForcePrompt, question: string): bool =
|
|||
display("Prompt:", question & " -> [forced no]", Warning, HighPriority)
|
||||
return false
|
||||
of dontForcePrompt:
|
||||
display("Prompt:", question & " [y/N]", Warning, HighPriority)
|
||||
displayLine("Prompt:", question & " [y/N]", Warning, HighPriority)
|
||||
displayCategory("Answer:", Warning, HighPriority)
|
||||
let yn = stdin.readLine()
|
||||
case yn.normalize
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue