ulyssa / modalkit

A Rust library for building modal editing applications
Apache License 2.0
49 stars 5 forks source link

Render CommandBarState contents on a single line #68

Closed ulyssa closed 1 year ago

ulyssa commented 1 year ago

It's possible to paste newlines into the command bar, which results in rendering only one of the lines. This can result in situations where you have accidentally ended up with a register value that ends in a terminating newline, and when you try to paste it into the command bar it renders only the last blank line. The CommandBar should render all of the contents on a single line, and visually show embedded newlines with a ^J.