ui/termstatus: Fix truncation of status output

The last line was not truncated as expected
This commit is contained in:
Michael Eischer 2023-05-01 18:13:10 +02:00
parent fefe15d7a1
commit bb40e49e75
1 changed files with 2 additions and 1 deletions

View File

@ -359,8 +359,9 @@ func (t *Terminal) SetStatus(lines []string) {
line = Truncate(line, width-2)
}
if i < len(lines)-1 { // Last line gets no line break.
lines[i] = line + "\n"
line += "\n"
}
lines[i] = line
}
select {