ui/termstatus: Fix truncation of status output
The last line was not truncated as expected
This commit is contained in:
parent
fefe15d7a1
commit
bb40e49e75
1 changed files with 2 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue