From 694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b Mon Sep 17 00:00:00 2001 From: jgmdev Date: Sun, 15 May 2022 16:30:37 -0400 Subject: minimap: simplify predicate since Object:is is now strict --- plugins/minimap.lua | 4 +--- 1 file changed, 1 insertion(+), 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. -- cgit v1.2.3