aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
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 603e173..75eb272 100644
--- a/plugins/minimap.lua
+++ b/plugins/minimap.lua
@@ -326,7 +326,7 @@ function MiniMap:is_minimap_enabled()
return last_line > config.plugins.minimap.avoid_small_docs
else
local docview = self.dv
- local _, y = docview:get_line_screen_position(last_line, docview.doc.lines[last_line])
+ local _, y = docview:get_line_screen_position(last_line, #docview.doc.lines[last_line])
y = y + docview.scroll.y - docview.position.y + docview:get_line_height()
return y > docview.size.y
end