1
1
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:
Wez Furlong 2019-12-08 17:49:27 -08:00
parent 6ea837fc14
commit 55f2016683

View File

@ -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,
),
),