~mdw
/
dvdrip
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d9660e
)
multiprogress.c (progress_shownotice): Remove pointless guard.
author
Mark Wooding
<mdw@distorted.org.uk>
Fri, 25 Mar 2022 01:34:17 +0000
(
01:34
+0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Fri, 25 Mar 2022 18:51:48 +0000
(18:51 +0000)
The `progress_put_sequence' function already does the right thing here.
multiprogress.c
patch
|
blob
|
blame
|
history
diff --git
a/multiprogress.c
b/multiprogress.c
index
0088932
..
3ce4073
100644
(file)
--- a/
multiprogress.c
+++ b/
multiprogress.c
@@
-581,8
+581,7
@@
int progress_shownotice(struct progress_render_state *render, int bg, int fg)
{ progress_set_fgcolour(tty, fg); progress_set_bgcolour(tty, bg); }
else if (tty->cap.mr)
progress_put_sequence(tty, tty->cap.mr, 1);
- if (tty->cap.md)
- progress_put_sequence(tty, tty->cap.md, 1);
+ progress_put_sequence(tty, tty->cap.md, 1);
put_str(tty->fp, render->linebuf, render->leftsz);
if (!render->rightsz && (tty->cap.f&TCF_BCE) && tty->cap.ce)