aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-06-10 16:37:43 +0200
committerGitHub Enterprise <[email protected]>2025-06-10 16:37:43 +0200
commitc4b2b2d99f8d037c26effd8597925c6327075f44 (patch)
tree3fa8b5e028d19e214b919f98341247809e20605a
parent5.6.12-pre0 (diff)
downloadzen-c4b2b2d99f8d037c26effd8597925c6327075f44.tar.xz
zen-c4b2b2d99f8d037c26effd8597925c6327075f44.zip
make sure we finish progress at 100% if not done (#432)
* make sure we finish progress at 100% if not done * fix condition
-rw-r--r--src/zen/zen.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zen/zen.cpp b/src/zen/zen.cpp
index f0644a4f5..e84e258b8 100644
--- a/src/zen/zen.cpp
+++ b/src/zen/zen.cpp
@@ -576,7 +576,7 @@ ProgressBar::ForceLinebreak()
void
ProgressBar::Finish()
{
- if (m_LastOutputLength > 0)
+ if (m_LastOutputLength > 0 || m_State.RemainingCount > 0)
{
State NewState = m_State;
NewState.RemainingCount = 0;