aboutsummaryrefslogtreecommitdiff
path: root/data/plugins
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-05-22 22:26:47 -0400
committerjgmdev <jgmdev@gmail.com>2022-05-22 22:26:47 -0400
commitb9bb64a2f08668b975b7615aa470e6089d9e5fb9 (patch)
treedc3194d3ddb6b4cb67690996b095bd8d9cac493a /data/plugins
parent36c4d5d9ed0e0be4df4d0b3260fe164a1ad75eab (diff)
parent26e47f7583dfb753f365005b67e381b0fba0f1ea (diff)
downloadlite-xl-master-2.1.tar.gz
lite-xl-master-2.1.zip
Merge branch 'master' into master-2.1master-2.1
Diffstat (limited to 'data/plugins')
-rw-r--r--data/plugins/contextmenu.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/data/plugins/contextmenu.lua b/data/plugins/contextmenu.lua
index 29e7c648..a5450056 100644
--- a/data/plugins/contextmenu.lua
+++ b/data/plugins/contextmenu.lua
@@ -3,7 +3,6 @@ local core = require "core"
local command = require "core.command"
local keymap = require "core.keymap"
local ContextMenu = require "core.contextmenu"
-local DocView = require "core.docview"
local RootView = require "core.rootview"
local menu = ContextMenu()
@@ -33,7 +32,7 @@ function RootView:draw(...)
menu:draw()
end
-command.add(function() return getmetatable(core.active_view) == DocView end, {
+command.add("core.docview!", {
["context:show"] = function()
menu:show(core.active_view.position.x, core.active_view.position.y)
end