Skip to content

Commit

Permalink
fix(esupports): use structured api to avoid injection (#899)
Browse files Browse the repository at this point in the history
  • Loading branch information
champignoom committed May 25, 2023
1 parent f367451 commit e50b8ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/neorg/modules/core/esupports/hop/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ module.public = {
png = open_in_external_app,
[{ "jpg", "jpeg" }] = open_in_external_app,
[module.config.public.external_filetypes] = open_in_external_app,
_ = neorg.lib.wrap(vim.api.nvim_exec, "e " .. vim.fn.fnamemodify(destination, ":p"), false),
_ = neorg.lib.wrap(vim.api.nvim_cmd, {cmd="edit", args={vim.fn.fnamemodify(destination, ":p")}}, {}),
})

return {}
Expand Down

0 comments on commit e50b8ae

Please sign in to comment.