diff options
Diffstat (limited to 'plugins/openfilelocation.lua')
-rw-r--r-- | plugins/openfilelocation.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/openfilelocation.lua b/plugins/openfilelocation.lua index 603c7b6..dd88248 100644 --- a/plugins/openfilelocation.lua +++ b/plugins/openfilelocation.lua @@ -28,9 +28,9 @@ config.plugins.openfilelocation = common.merge({ } }, config.plugins.openfilelocation) -command.add("core.docview", { - ["open-file-location:open-file-location"] = function() - local doc = core.active_view.doc +command.add("core.docview!", { + ["open-file-location:open-file-location"] = function(dv) + local doc = dv.doc if not doc.filename then core.error "Cannot open location of unsaved doc" return |