From 0e0ce8ffc325e074eaa66f54a49c148dfb059e95 Mon Sep 17 00:00:00 2001 From: Ayman Bagabas Date: Thu, 6 Feb 2025 16:02:46 -0500 Subject: [PATCH] fix(cellbuf): lower-right corner cell don't go into pending wrap Writing to lower-right corner cell with auto-wrap mode disabled doesn't move the cursor to the next line. --- cellbuf/screen.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cellbuf/screen.go b/cellbuf/screen.go index 647ea943..28918d43 100644 --- a/cellbuf/screen.go +++ b/cellbuf/screen.go @@ -638,6 +638,8 @@ func (s *Screen) putCellLR(cell *Cell) { s.buf.WriteString(ansi.ResetAutoWrapMode) //nolint:errcheck } s.putAttrCell(cell) + // Writing to lower-right corner cell should not wrap. + s.atPhantom = false if cell == nil || cell.Width > 0 { s.cur.X = curX s.buf.WriteString(ansi.SetAutoWrapMode) //nolint:errcheck