Skip to content

Commit

Permalink
modify to pass code coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Page committed Dec 3, 2020
1 parent 47d94e8 commit 4236348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rich/live.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,15 +257,15 @@ def process_renderables(
# lock needs acquiring as user can modify live_render renerable at any time unlike in Progress.
with self._lock:
# determine the control command needed to clear previous rendering
return [
renderables = [
self._live_render.position_cursor(),
*renderables,
self._live_render,
]
elif (
not self._started and not self.transient
): # if it is finished render the final output for files or dumb_terminals
return [*renderables, self._live_render]
renderables = [*renderables, self._live_render]

return renderables

Expand Down

0 comments on commit 4236348

Please sign in to comment.