Codebase list golang-github-vbauerster-mpb / ba45b6d
more specific comment on why 'w.lineCount > 0' check Vladimir Bauer 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
3838
3939 // Flush flushes the underlying buffer.
4040 func (w *Writer) Flush(lineCount int) (err error) {
41 // some terminals interpret clear 0 lines as clear 1
41 // some terminals interpret 'cursor up 0' as 'cursor up 1'
4242 if w.lineCount > 0 {
4343 err = w.clearLines()
4444 if err != nil {