mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +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.
|
// single-width characters into that.
|
||||||
if (cell.attrs.wide) {
|
if (cell.attrs.wide) {
|
||||||
const x = self.screen.cursor.x + 1;
|
const x = self.screen.cursor.x + 1;
|
||||||
assert(x < self.cols);
|
if (x < self.cols) {
|
||||||
|
const spacer_cell = row.getCellPtr(x);
|
||||||
const spacer_cell = row.getCellPtr(x);
|
spacer_cell.* = self.screen.cursor.pen;
|
||||||
spacer_cell.* = self.screen.cursor.pen;
|
}
|
||||||
|
|
||||||
if (self.screen.cursor.y > 0 and self.screen.cursor.x <= 1) {
|
if (self.screen.cursor.y > 0 and self.screen.cursor.x <= 1) {
|
||||||
self.clearWideSpacerHead();
|
self.clearWideSpacerHead();
|
||||||
|
Reference in New Issue
Block a user