gbranden pushed a commit to branch master
in repository groff.
commit f3cd1860675d7e71146f35791e8619a6da0471df
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 00:41:51 2026 -0600
src/devices/grotty/tty.cpp: Revise error diag.
* src/devices/grotty/tty.cpp (tty_printer::add_char): Tweak error
diagnostic when discarding output above the first line of the
terminal, as can happen with negative vertical motions relative to the
first output line.
---
ChangeLog | 7 +++++++
src/devices/grotty/tty.cpp | 2 +-
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index 2081831e6..ed255b94d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-11-22 G. Branden Robinson <[email protected]>
+
+ * src/devices/grotty/tty.cpp (tty_printer::add_char): Tweak
+ error diagnostic when discarding output above the first line of
+ the terminal, as can happen with negative vertical motions
+ relative to the first output line.
+
2026-11-22 G. Branden Robinson <[email protected]>
* src/devices/grotty/tty.cpp (tty_printer::add_char): Refactor.
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index a7e337261..2084db1b0 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -414,7 +414,7 @@ void tty_printer::add_char(output_character c, int w,
// The first output line corresponds to drawing position `font::vert`.
int vpos = v / font::vert;
if (vpos <= 0) {
- error("output above first line discarded");
+ error("discarding output above first line of terminal");
return;
}
if ((v % font::vert) != 0)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit