mirror of
https://github.com/octoleo/restic.git
synced 2024-11-26 06:46:34 +00:00
ui/termstatus: Fix truncation of status output
The last line was not truncated as expected
This commit is contained in:
parent
fefe15d7a1
commit
bb40e49e75
@ -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 New Issue
Block a user