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 a795010a5600138decdddf1f655412012005146a
Author: Boris Faure <[email protected]>
AuthorDate: Tue Nov 10 10:05:13 2026 +0000
termptyesc: keep a tab's end mark inside a one-column row
A tab marks the cell before the cursor's new position as its last one.
On a one-column terminal the cursor cannot move off column 0, so that
was the cell before the row, writing past the start of the screen.
Mark column 0 instead: the tab then spans that single cell.
---
src/bin/termptyesc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/bin/termptyesc.c b/src/bin/termptyesc.c
index 799671d2..3d9b3ed9 100644
--- a/src/bin/termptyesc.c
+++ b/src/bin/termptyesc.c
@@ -318,7 +318,8 @@ _handle_cursor_control(Termpty *ty, const Eina_Unicode *cc)
cell = &(TERMPTY_SCREEN(ty, ty->cursor_state.cx, ty->cursor_state.cy));
cell->att.tab_inserted = 1;
_tab_forward(ty, 1);
- cell = &(TERMPTY_SCREEN(ty, ty->cursor_state.cx -1, ty->cursor_state.cy));
+ cell = &(TERMPTY_SCREEN(ty, MAX(ty->cursor_state.cx - 1, 0),
+ ty->cursor_state.cy));
cell->att.tab_last = 1;
return;
case 0x0a: // LF '\n' (new line)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.