aboutsummaryrefslogtreecommitdiff
path: root/plugins/openselected.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/openselected.lua')
-rw-r--r--plugins/openselected.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/openselected.lua b/plugins/openselected.lua
index 6333da9..955c144 100644
--- a/plugins/openselected.lua
+++ b/plugins/openselected.lua
@@ -31,9 +31,9 @@ config.plugins.openselected = common.merge({
}
}, config.plugins.openselected)
-command.add("core.docview", {
- ["open-selected:open-selected"] = function()
- local doc = core.active_view.doc
+command.add("core.docview!", {
+ ["open-selected:open-selected"] = function(dv)
+ local doc = dv.doc
if not doc:has_selection() then
core.error("No text selected")
return