From 5b00d9ac6c36c70a05f3d3057fc71ae4e424cc5a Mon Sep 17 00:00:00 2001 From: Jacob Mischka Date: Mon, 24 Aug 2020 09:48:46 -0500 Subject: [PATCH] Round up background cell width Fixes #253 --- 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 05069fda..ef0b9030 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, line_height); + ctx.rectangle(line_x, line_y, char_width.ceil(), line_height); ctx.fill(); } } else {