summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-04 08:10:17 +0200
committerPaul Buetow <paul@buetow.org>2026-03-04 08:10:17 +0200
commit38a1fe52b761c717fb4d62d286b1c12add8f21ce (patch)
tree0885f2ce7884af8ce96e0083f1453f52b9e292e5 /internal
parentb53e1eb61eea026973e2d0a09c7079774f550ce0 (diff)
tui: use named returns for body size
Diffstat (limited to 'internal')
-rw-r--r--internal/tui/tui.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/tui/tui.go b/internal/tui/tui.go
index 4a3c961..2dae273 100644
--- a/internal/tui/tui.go
+++ b/internal/tui/tui.go
@@ -230,9 +230,9 @@ func (m *Model) switchTab(next tab) tea.Cmd {
return nil
}
-func (m *Model) bodySize() (int, int) {
- width := m.width - 4
- height := m.height - 6
+func (m *Model) bodySize() (width int, height int) {
+ width = m.width - 4
+ height = m.height - 6
if width < 20 {
width = m.width