erase line left should include cursor position

This commit is contained in:
Mitchell Hashimoto
2022-07-24 09:53:21 -07:00
parent a43c63111f
commit a3409ac70d
3 changed files with 1 additions and 1 deletions

View File

@ -491,7 +491,7 @@ pub fn eraseLine(
.left => {
const row = self.screen.getRow(self.screen.cursor.y);
std.mem.set(Screen.Cell, row[0..self.screen.cursor.x], self.screen.cursor.pen);
std.mem.set(Screen.Cell, row[0 .. self.screen.cursor.x + 1], self.screen.cursor.pen);
// Unsets pending wrap state
self.screen.cursor.pending_wrap = false;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB