terminal: fix undefined memory access in PageList eraseRows

This commit is contained in:
Mitchell Hashimoto
2025-08-20 19:51:36 -07:00
parent 2cebc225c0
commit 3ce043123b

View File

@@ -2395,8 +2395,8 @@ pub fn eraseRows(
break;
}
self.erasePage(chunk.node);
erased += chunk.node.data.size.rows;
self.erasePage(chunk.node);
continue;
}