From ce6fb751afdb311f3a3fd2d02ca6e472361074b0 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Mon, 13 Jun 2022 23:46:33 +0200 Subject: `minimap`: fix cutoff offset --- plugins/minimap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/minimap.lua') diff --git a/plugins/minimap.lua b/plugins/minimap.lua index f307053..fd48a51 100644 --- a/plugins/minimap.lua +++ b/plugins/minimap.lua @@ -523,7 +523,7 @@ DocView.draw_scrollbar = function(self) local batch_width = 0 local batch_start = x local last_batch_end = -1 - local minimap_cutoff_x = x + config.plugins.minimap.width * SCALE + local minimap_cutoff_x = config.plugins.minimap.width * SCALE local batch_syntax_type = nil local function flush_batch(type, cache) if batch_width > 0 then -- cgit v1.2.3