xcvr tui

shrink moreeeeeee

+6 -1
+6 -1
main.go
··· 1194 1194 if m.mode == Command { 1195 1195 footertext = m.prompt.View() 1196 1196 } else if remainingspace < 1 { 1197 - footertext = fmt.Sprintf("%s%s", address, strings.Repeat(" ", m.width-len(address))) 1197 + addressremaining := m.width - len(address) 1198 + if addressremaining < 0 { 1199 + footertext = strings.Repeat(" ", m.width) 1200 + } else { 1201 + footertext = fmt.Sprintf("%s%s", address, strings.Repeat(" ", m.width-len(address))) 1202 + } 1198 1203 } else { 1199 1204 footertext = fmt.Sprintf("%s%s%s", address, strings.Repeat(" ", remainingspace), topic) 1200 1205 }