From 2930f2e37ba94909ea8b72252252d25c8de88597 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Tue, 23 Jun 2026 04:52:44 -0400 Subject: fix: mouse clicks fixed when window is too small --- app.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'app.go') diff --git a/app.go b/app.go index 9de0476..f5a6343 100644 --- a/app.go +++ b/app.go @@ -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 { -- cgit v1.2.3