Skip to content

Commit 727260e

Browse files
committed
...
1 parent ad804cc commit 727260e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

kittens/tui/progress.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,7 @@ def render_progress_bar(frac: float, width: int = 80) -> str:
3030
fl += 1
3131
needs_break = False
3232
ans = styled(filled, fg='blue')
33-
unfilled = ''
34-
if width > fl:
35-
if needs_break:
36-
unfilled += '🬇'
33+
unfilled = '🬇' if width > fl and needs_break else ''
3734
filler = width - fl - len(unfilled)
3835
if filler > 0:
3936
unfilled += repeat('🬋', filler)

0 commit comments

Comments
 (0)