Skip to content

Commit

Permalink
progress: create new display object after unpause
Browse files Browse the repository at this point in the history
Without this, we attempt to overwrite the previous display in the lines
above which have been filled with logs from the monitor (see when used
with `--invoke`).

Signed-off-by: Justin Chadwell <[email protected]>
  • Loading branch information
jedevc committed Sep 27, 2023
1 parent 0bd6f3c commit b9aad03
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions util/progress/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,8 @@ func NewPrinter(ctx context.Context, out console.File, mode progressui.DisplayMo
pw.ready = make(chan struct{})
<-pw.paused
pw.paused = nil

d, _ = progressui.NewDisplay(out, mode, opt.displayOpts...)
}
}()
<-pw.ready
Expand Down

0 comments on commit b9aad03

Please sign in to comment.