gbranden pushed a commit to branch master
in repository groff.
commit 11d89b1fab296c5b9af4de45ccf18b3ddc729de0
Author: G. Branden Robinson <[email protected]>
AuthorDate: Sun Nov 22 00:19:18 2026 -0600
src/devices/grotty/tty.cpp: Annotate.
---
src/devices/grotty/tty.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/devices/grotty/tty.cpp b/src/devices/grotty/tty.cpp
index df98d72c2..e00d16a54 100644
--- a/src/devices/grotty/tty.cpp
+++ b/src/devices/grotty/tty.cpp
@@ -474,6 +474,7 @@ void tty_printer::add_char(output_character c, int w,
// at each hpos, and otherwise in order of occurrence.
tty_glyph **pp;
+ // Use `vpos - 1` because the first output line is at `font::vert`.
for (pp = lines + (vpos - 1);
(pp != 0 /* nullptr */) && (*pp != 0 /* nullptr */);
pp = &(*pp)->next)
_______________________________________________
groff-commit mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/groff-commit