terminal: remove redundant assertIntegrity from clearPrompt (#6630)

clearCells() always asserts its page's integrity after finishing its
work (via a `defer`). We don't need to re-assert the page's integrity
immediately thereafter.
This commit is contained in:
Mitchell Hashimoto
2025-03-08 14:37:23 -08:00
committed by GitHub

View File

@@ -1373,7 +1373,6 @@ pub fn clearPrompt(self: *Screen) void {
while (clear_it.next()) |p| {
const row = p.rowAndCell().row;
p.node.data.clearCells(row, 0, p.node.data.size.cols);
p.node.data.assertIntegrity();
}
}
}