This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch tymux
in repository terminology.
View the commit online.
commit b1f3e4e8d8e5ff45b510b4fe0b8f91bbdc152058
Author: [email protected] <[email protected]>
AuthorDate: Wed Mar 18 22:38:05 2026 -0600
fix: use actual column count as cell array stride in tymux _render_screen
The cell array is packed contiguously by the daemon using the actual
terminal width as the row stride. The client was incorrectly indexing
with _SHM_MAX_COLS (500), a compile-time constant, instead of the
actual column count from the shm header. This caused every row past
row 0 to read from the wrong memory offset, resulting in garbled
output when terminal width differed from 500.
The fix uses scols (actual columns) as the stride, aligning with how
the daemon packs the data.
---
src/bin/tymux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/bin/tymux.c b/src/bin/tymux.c
index b0bd6893..1242db9c 100644
--- a/src/bin/tymux.c
+++ b/src/bin/tymux.c
@@ -493,7 +493,7 @@ _render_screen(const void *shm, uint32_t cols, uint32_t rows)
{
for (uint32_t col = 0; col < scols; col++)
{
- const _Termcell *c = &cells[row * _SHM_MAX_COLS + col];
+ const _Termcell *c = &cells[row * scols + col];
/* Attributes changed? Emit SGR. */
int need_reset = 0;
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.