mirror of
https://github.com/wez/wezterm.git
synced 2024-11-28 01:06:37 +03:00
fix subtraction underflow
This commit is contained in:
parent
6ea837fc14
commit
55f2016683
@ -1672,7 +1672,9 @@ impl TermWindow {
|
||||
self.render_metrics.cell_size.height * line_idx as isize,
|
||||
),
|
||||
Size::new(
|
||||
(self.dimensions.pixel_width - pixel_width_of_cells) as isize,
|
||||
self.dimensions
|
||||
.pixel_width
|
||||
.saturating_sub(pixel_width_of_cells) as isize,
|
||||
self.render_metrics.cell_size.height,
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user