From b47a88b142a8987f1d0d48db8c0db1e5f3048a76 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 3 Nov 2019 21:59:28 +0100 Subject: Fix URL highlighting Fixes #2898. Fixes #2479. --- alacritty_terminal/src/renderer/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alacritty_terminal/src/renderer/mod.rs') diff --git a/alacritty_terminal/src/renderer/mod.rs b/alacritty_terminal/src/renderer/mod.rs index 76daac91..b200743a 100644 --- a/alacritty_terminal/src/renderer/mod.rs +++ b/alacritty_terminal/src/renderer/mod.rs @@ -382,8 +382,8 @@ impl GlyphCache { let grid_width = cell_width as u32 * dimensions.columns_u32(); let grid_height = cell_height as u32 * dimensions.lines_u32(); - let width = (f64::from(grid_width) + 2. * padding_x).floor(); - let height = (f64::from(grid_height) + 2. * padding_y).floor(); + let width = padding_x.mul_add(2., f64::from(grid_width)).floor(); + let height = padding_y.mul_add(2., f64::from(grid_height)).floor(); Some((width, height)) } -- cgit