mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
erase line left should include cursor position
This commit is contained in:
@ -491,7 +491,7 @@ pub fn eraseLine(
|
|||||||
|
|
||||||
.left => {
|
.left => {
|
||||||
const row = self.screen.getRow(self.screen.cursor.y);
|
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
|
// Unsets pending wrap state
|
||||||
self.screen.cursor.pending_wrap = false;
|
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 |
Reference in New Issue
Block a user