aboutsummaryrefslogtreecommitdiff
path: root/plugins/minimap.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-15 16:30:37 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 13:20:25 -0400
commit694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b (patch)
tree2bbbdc491d98b065f333abbd50a6d4d98882aa24 /plugins/minimap.lua
parentff96b251c81214096cf23fb9207eca48e34bb9ab (diff)
downloadlite-xl-plugins-694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b.tar.gz
lite-xl-plugins-694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b.zip
minimap: simplify predicate since Object:is is now strict
Diffstat (limited to 'plugins/minimap.lua')
-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.