Skip to content

Commit

Permalink
fix(cellbuf): lower-right corner cell don't go into pending wrap
Browse files Browse the repository at this point in the history
Writing to lower-right corner cell with auto-wrap mode disabled doesn't
move the cursor to the next line.
  • Loading branch information
aymanbagabas committed Feb 6, 2025
1 parent af001ce commit 0e0ce8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cellbuf/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e0ce8f

Please sign in to comment.