diff options
| author | historia <[not public]> | 2026-06-23 04:52:44 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-23 04:52:44 -0400 |
| commit | 2930f2e37ba94909ea8b72252252d25c8de88597 (patch) | |
| tree | d7b10c7b7cc882dbfe4dbd413680146d09e25e2f /app.go | |
| parent | b8e473b069d9c81e2f6a471fa7636c27cee63fae (diff) | |
| download | tui-ascii-mapper-2930f2e37ba94909ea8b72252252d25c8de88597.tar.gz | |
fix: mouse clicks fixed when window is too small
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 { |
