diff options
Diffstat (limited to 'plugins/copyfilelocation.lua')
-rw-r--r-- | plugins/copyfilelocation.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/copyfilelocation.lua b/plugins/copyfilelocation.lua index eb7b1a9..34f55d8 100644 --- a/plugins/copyfilelocation.lua +++ b/plugins/copyfilelocation.lua @@ -3,8 +3,8 @@ local core = require "core" local command = require "core.command" command.add("core.docview", { - ["copy-file-location:copy-file-location"] = function() - local doc = core.active_view.doc + ["copy-file-location:copy-file-location"] = function(dv) + local doc = dv.doc if not doc.abs_filename then core.error "Cannot copy location of unsaved doc" return |