mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00
terminal: erase display complete needs to reset row wrap state
This commit is contained in:
@ -904,7 +904,11 @@ pub fn eraseDisplay(
|
|||||||
switch (mode) {
|
switch (mode) {
|
||||||
.complete => {
|
.complete => {
|
||||||
var it = self.screen.rowIterator(.active);
|
var it = self.screen.rowIterator(.active);
|
||||||
while (it.next()) |row| row.clear(self.screen.cursor.pen);
|
while (it.next()) |row| {
|
||||||
|
row.setWrapped(false);
|
||||||
|
row.setDirty(true);
|
||||||
|
row.clear(self.screen.cursor.pen);
|
||||||
|
}
|
||||||
|
|
||||||
// Unsets pending wrap state
|
// Unsets pending wrap state
|
||||||
self.screen.cursor.pending_wrap = false;
|
self.screen.cursor.pending_wrap = false;
|
||||||
|
Reference in New Issue
Block a user