diff options
| author | ewy <ewy0@protonmail.com> | 2026-05-02 19:08:49 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-05-02 19:08:49 +0200 |
| commit | d1633e905a1487e8845088c03db8faf53d587e46 (patch) | |
| tree | 38024375e7bc7a826b4c382c246ec7668f96ab46 /menu/state.go | |
| parent | aa9031ab0deb1535875fe3ca2530428f485dbf9d (diff) | |
trim right side space in viewport
Diffstat (limited to 'menu/state.go')
| -rw-r--r-- | menu/state.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/menu/state.go b/menu/state.go index 3a46132..55da10b 100644 --- a/menu/state.go +++ b/menu/state.go @@ -19,9 +19,12 @@ func (m *Model) State() string { sources := make([]string, 0, len(st.Sources)) for i, hs := range st.HydratedSources { src := m.Source(hs) + + // do not pad the bottom source, the motd goes there if i != len(st.HydratedSources)-1 { src += "\n" } + sources = append(sources, src) } |
