Skip to content

Commit

Permalink
terminal: remove redundant assertIntegrity from clearPrompt (ghostty-…
Browse files Browse the repository at this point in the history
…org#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.
  • Loading branch information
mitchellh authored Mar 8, 2025
2 parents 5efa2a6 + b0b2de0 commit d3fd2b0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/terminal/Screen.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
}
Expand Down

0 comments on commit d3fd2b0

Please sign in to comment.