gbranden pushed a commit to branch master
in repository groff.

commit 04a4dae4ec7cfec33c6e01d181707aa4a9d70b4e
Author: G. Branden Robinson <[email protected]>
AuthorDate: Fri Apr 17 13:39:13 2026 -0500

    src/roff/troff/input.cpp: Fix code style nit.
    
    * src/roff/troff/input.cpp (abort_request): Drop extraneous parentheses;
      no formally complex operation is occurring here, in the sense I use
      the term.  Only one dyadic operator is involved in the `for` loop's
      updating expression.
---
 ChangeLog                | 7 +++++++
 src/roff/troff/input.cpp | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 9a0449f6d..ded21fc2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-04-17  G. Branden Robinson <[email protected]>
+
+       * src/roff/troff/input.cpp (abort_request): Fix code style nit.
+       Drop extraneous parentheses; no formally complex operation is
+       occurring here, in the sense I use the term.  Only one dyadic
+       operator is involved in the `for` loop's updating expression.
+
 2026-04-17  G. Branden Robinson <[email protected]>
 
        * src/roff/troff/input.cpp: Trivially refactor.
diff --git a/src/roff/troff/input.cpp b/src/roff/troff/input.cpp
index 91f382e0f..a1df76d09 100644
--- a/src/roff/troff/input.cpp
+++ b/src/roff/troff/input.cpp
@@ -9417,7 +9417,7 @@ void abort_request()
     if ((c != '\n') && (c != EOF)) {
       for (;
           (c != '\n') && (c != EOF);
-          (c = read_char_in_copy_mode(0 /* nullptr */)))
+          c = read_char_in_copy_mode(0 /* nullptr */))
        fputs(encode_for_stream_output(c), stderr);
       fputc('\n', stderr);
       fflush(stderr);

_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit

Reply via email to