diff options
author | jgmdev <jgmdev@gmail.com> | 2022-05-15 16:30:37 -0400 |
---|---|---|
committer | jgmdev <jgmdev@gmail.com> | 2022-05-22 13:20:25 -0400 |
commit | 694132ec9d81ced3d8c6ebbf10e451bbc5a9e65b (patch) | |
tree | 2bbbdc491d98b065f333abbd50a6d4d98882aa24 /plugins/minimap.lua | |
parent | ff96b251c81214096cf23fb9207eca48e34bb9ab (diff) | |
download | lite-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.lua | 4 |
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. |