aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/minimap.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugins/minimap.lua b/plugins/minimap.lua
index 618e3b7..ac86b85 100644
--- a/plugins/minimap.lua
+++ b/plugins/minimap.lua
@@ -59,9 +59,7 @@ local minimap = MiniMap()
local function show_minimap()
return config.plugins.minimap.enabled
- and getmetatable(core.active_view) == DocView
- and core.active_view ~= core.command_view
- and core.active_view.doc
+ and core.active_view:is(DocView)
end
-- Overloaded since the default implementation adds a extra x3 size of hotspot for the mouse to hit the scrollbar.