mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
terminal: only clear spacer tail if exists
This commit is contained in:
@ -888,10 +888,10 @@ fn printCell(self: *Terminal, unmapped_c: u21) *Screen.Cell {
|
||||
// single-width characters into that.
|
||||
if (cell.attrs.wide) {
|
||||
const x = self.screen.cursor.x + 1;
|
||||
assert(x < self.cols);
|
||||
|
||||
const spacer_cell = row.getCellPtr(x);
|
||||
spacer_cell.* = self.screen.cursor.pen;
|
||||
if (x < self.cols) {
|
||||
const spacer_cell = row.getCellPtr(x);
|
||||
spacer_cell.* = self.screen.cursor.pen;
|
||||
}
|
||||
|
||||
if (self.screen.cursor.y > 0 and self.screen.cursor.x <= 1) {
|
||||
self.clearWideSpacerHead();
|
||||
|
Reference in New Issue
Block a user