diff options
Diffstat (limited to 'plugins/primary_selection.lua')
-rw-r--r-- | plugins/primary_selection.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/primary_selection.lua b/plugins/primary_selection.lua index 388caf0..4f8d71a 100644 --- a/plugins/primary_selection.lua +++ b/plugins/primary_selection.lua @@ -154,7 +154,7 @@ end command.add("core.docview", { - ["primary-selection:paste"] = function(x, y, clicks, ...) + ["primary-selection:paste"] = function(dv, x, y, clicks, ...) if not config.plugins.primary_selection.command_out or #config.plugins.primary_selection.command_out == 0 then core.warn("No primary selection paste command set") @@ -176,7 +176,7 @@ command.add("core.docview", { table.insert(text, buffer or "") until not buffer if #text > 0 then - core.active_view.doc:text_input(table.concat(text)) + dv.doc:text_input(table.concat(text)) end end }) |