aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app.go7
-rwxr-xr-xtui-ascii-mapperbin5926300 -> 5925860 bytes
2 files changed, 5 insertions, 2 deletions
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 {
diff --git a/tui-ascii-mapper b/tui-ascii-mapper
index d50b521..8d403d0 100755
--- a/tui-ascii-mapper
+++ b/tui-ascii-mapper
Binary files differ