Skip to content

Commit

Permalink
Use clear() instead of _overwrite_bar() in __exit__()
Browse files Browse the repository at this point in the history
  • Loading branch information
AnnikaV9 authored Sep 17, 2022
1 parent 168f97a commit 8d2ccaf
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lowbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __enter__(self) -> object:

"""
Context manager setup to automatically display bar
without requiring update().
without requiring new().
"""

self.new()
Expand All @@ -72,9 +72,7 @@ def __exit__(self, *exc) -> None:
without requiring clear().
"""

self._block_when_smoothing()

self._overwrite_bar()
self.clear()

def _print_internal(self, text: str) -> None:

Expand Down

0 comments on commit 8d2ccaf

Please sign in to comment.