tangled
alpha
login
or
join now
moth11.net
/
ttyxcvr
0
fork
atom
xcvr tui
0
fork
atom
overview
issues
pulls
pipelines
shrink moreeeeeee
moth11.net
5 months ago
470f1076
c03bdec0
+6
-1
1 changed file
expand all
collapse all
unified
split
main.go
+6
-1
main.go
···
1194
1194
if m.mode == Command {
1195
1195
footertext = m.prompt.View()
1196
1196
} else if remainingspace < 1 {
1197
1197
-
footertext = fmt.Sprintf("%s%s", address, strings.Repeat(" ", m.width-len(address)))
1197
1197
+
addressremaining := m.width - len(address)
1198
1198
+
if addressremaining < 0 {
1199
1199
+
footertext = strings.Repeat(" ", m.width)
1200
1200
+
} else {
1201
1201
+
footertext = fmt.Sprintf("%s%s", address, strings.Repeat(" ", m.width-len(address)))
1202
1202
+
}
1198
1203
} else {
1199
1204
footertext = fmt.Sprintf("%s%s%s", address, strings.Repeat(" ", remainingspace), topic)
1200
1205
}