From 49c99a3acf8cbca37b259b5dc4489fe3aeeb6b53 Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Thu, 1 Oct 2020 17:59:58 -0500 Subject: [PATCH] Reduce extra background overflow This is more magical than before, but still fixes the bug and causes fewer problems. --- src/render/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/render/mod.rs b/src/render/mod.rs index ef0b9030..c1374beb 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -233,7 +233,7 @@ fn draw_cell_bg( if !line.is_binded_to_item(col) { if bg != hl.bg() { ctx.set_source_rgbo(bg, bg_alpha); - ctx.rectangle(line_x, line_y, char_width.ceil(), line_height); + ctx.rectangle(line_x, line_y, char_width + 0.001, line_height); ctx.fill(); } } else {