diff options
Diffstat (limited to 'app.go')
| -rw-r--r-- | app.go | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -2100,8 +2100,11 @@ func (m *AppModel) renderSidebar(gh int) string { sb.WriteString(label) sb.WriteByte('\n') } - _ = gh - return sb.String() + lines := strings.Split(sb.String(), "\n") + if len(lines) > gh { + lines = lines[:gh] + } + return strings.Join(lines, "\n") } func (m *AppModel) renderStatus() string { |
