From 470f107673e2e360de7ac5547c310ef9dc16d95a Mon Sep 17 00:00:00 2001 From: rachel-mp4 Date: Sat, 27 Sep 2025 21:01:52 -0400 Subject: [PATCH] shrink moreeeeeee --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 8952ef6..e30f3dd 100644 --- a/main.go +++ b/main.go @@ -1194,7 +1194,12 @@ func (m model) connectedView() string { if m.mode == Command { footertext = m.prompt.View() } else if remainingspace < 1 { - footertext = fmt.Sprintf("%s%s", address, strings.Repeat(" ", m.width-len(address))) + addressremaining := m.width - len(address) + if addressremaining < 0 { + footertext = strings.Repeat(" ", m.width) + } else { + footertext = fmt.Sprintf("%s%s", address, strings.Repeat(" ", m.width-len(address))) + } } else { footertext = fmt.Sprintf("%s%s%s", address, strings.Repeat(" ", remainingspace), topic) } -- 2.51.2