Skip to content

Commit

Permalink
No wrapping newlines when saved (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinovitch61 committed Dec 10, 2022
1 parent bd140a6 commit aa1ebf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tui/components/viewport/viewport.go
Original file line number Diff line number Diff line change
Expand Up @@ -647,7 +647,7 @@ func (m Model) getFooter() (string, int) {
func (m Model) getSaveCommand() tea.Cmd {
return func() tea.Msg {
var content string
for _, line := range append(m.getHeader(), m.getContent()...) {
for _, line := range append(m.getHeader(), m.content...) {
content += strings.TrimRight(line, " ") + "\n"
}

Expand Down

0 comments on commit aa1ebf8

Please sign in to comment.