diff options
Diffstat (limited to 'plugins/minimap.lua')
-rw-r--r-- | plugins/minimap.lua | 4 |
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 |