Skip to content

Commit

Permalink
fix: use relative path when use_absolute_path is false
Browse files Browse the repository at this point in the history
  • Loading branch information
HakonHarnes committed Aug 26, 2024
1 parent 4ee2dc9 commit 8e8c39c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/img-clip/paste.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ M.paste_image_from_path = function(src_path)

-- if we are not copying images, then just insert the original path
if not config.get_opt("copy_images") then
if config.get_opt("relative_to_current_file") then
if config.get_opt("relative_to_current_file") or not config.get_opt("use_absolute_path") then
src_path = fs.relpath(src_path)
end

Expand Down

0 comments on commit 8e8c39c

Please sign in to comment.