piotrmurach / tty-prompt

A beautiful and powerful interactive command line prompt
https://ttytoolkit.org
MIT License
1.47k stars 136 forks source link

Dashes in a value provided to ask are converted to spaces after up-arrow #185

Open mslinn opened 2 years ago

mslinn commented 2 years ago

Describe the problem

Pressing up-arrow in response to the prompt below causes the dashes to be converted to spaces.

prompt = TTY::Prompt.new
prompt.ask('Filename slug: ', value: 'a-b-c')

There is no error message.

Describe your environment