aboutsummaryrefslogtreecommitdiff
path: root/plugins/minimap.lua
diff options
context:
space:
mode:
authorGuldoman <giulio.lettieri@gmail.com>2022-11-02 08:10:57 +0100
committerGitHub <noreply@github.com>2022-11-02 08:10:57 +0100
commit9bf5649c7df6bbd746956e9a96b616f61a59fa9b (patch)
tree725e2d12dc826f8ebe73807a705371cb4c5af4d9 /plugins/minimap.lua
parent49139e03398c9d0ecb347267a4882a4eb3f7ee23 (diff)
downloadlite-xl-plugins-9bf5649c7df6bbd746956e9a96b616f61a59fa9b.tar.gz
lite-xl-plugins-9bf5649c7df6bbd746956e9a96b616f61a59fa9b.zip
Use new `command.add` syntax (#136)
Diffstat (limited to 'plugins/minimap.lua')
-rw-r--r--plugins/minimap.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/minimap.lua b/plugins/minimap.lua
index c2dd8f0..603e173 100644
--- a/plugins/minimap.lua
+++ b/plugins/minimap.lua
@@ -652,8 +652,8 @@ command.add(nil, {
})
command.add("core.docview!", {
- ["minimap:toggle-visibility-for-current-view"] = function()
- local sb = core.active_view.v_scrollbar
+ ["minimap:toggle-visibility-for-current-view"] = function(dv)
+ local sb = dv.v_scrollbar
if sb.enabled ~= nil then
sb.enabled = not sb.enabled
else