robinovitch61 / wander

A terminal app/TUI for HashiCorp Nomad

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Saving viewport contents should not include wrapping newlines if wrap is on

robinovitch61 opened this issue · comments

Describe the bug
Saving viewport contents when visual wrapping is on includes newlines in the saved content. It should not include wrapping newlines.

To reproduce
In a viewport with wrapping on and long enough lines to wrap around, save the contents with ctrl + s. You'll see the newlines are saved as well.

Expected behavior
Newlines for visual wrapping purposes should not be present in the saved content.