aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2022-06-13 23:46:33 +0200
committerGuldoman <giulio.lettieri@gmail.com>2022-06-13 23:46:33 +0200
commitce6fb751afdb311f3a3fd2d02ca6e472361074b0 (patch)
tree5e150a0d7d0e2d85d3c1fdd4f4c3f2e38ee8c3d8 /plugins
parentb1d8fc4c6f911f21422900203dc798ae883cde8f (diff)
downloadlite-xl-plugins-ce6fb751afdb311f3a3fd2d02ca6e472361074b0.tar.gz
lite-xl-plugins-ce6fb751afdb311f3a3fd2d02ca6e472361074b0.zip
`minimap`: fix cutoff offset
Diffstat (limited to 'plugins')
-rw-r--r--plugins/minimap.lua2
1 files changed, 1 insertions, 1 deletions
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