This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch tymux-10-quiet-head
in repository terminology.

View the commit online.

commit 653bbd6b6619783472e50b547cf0bb67d34f16bb
Author: Boris Faure <[email protected]>
AuthorDate: Sat Nov 14 21:04:11 2026 +0000

    termpty: use MAX() in termpty_progress_set
---
 src/bin/termpty.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/bin/termpty.c b/src/bin/termpty.c
index 71e72aea..f8445a65 100644
--- a/src/bin/termpty.c
+++ b/src/bin/termpty.c
@@ -2001,7 +2001,7 @@ termpty_progress_set(Termpty *ty, Termpty_Progress_State state, int value)
       case TERMPTY_PROGRESS_INDETERMINATE:
          break;
       case TERMPTY_PROGRESS_NORMAL:
-         new_value = (value < 0) ? 0 : value;
+         new_value = MAX(0, value);
          break;
       case TERMPTY_PROGRESS_ERROR:
       case TERMPTY_PROGRESS_PAUSED:

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to