Skip to content
Myr

Use more idiomatic function name for content setter in pager

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Christian Rocha · committed by Christian Rocha · parent 149579d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:pager/pager.go+1 added-1 removed
27 unmodified lines
28 return y / (t - h)29}3031// Content set the pager's text content32func (m *Model) Content(s string) {32func (m *Model) SetContent(s string) {33 s = strings.Replace(s, "\r\n", "\n", -1) // normalize line endings34 m.lines = strings.Split(s, "\n")35}36
117 unmodified lines