We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8b6b03 commit ba6b3f2Copy full SHA for ba6b3f2
lua/img-clip/markup.lua
@@ -119,8 +119,8 @@ end
119
---@return boolean
120
function M.insert_markup(input, is_file_path)
121
local template = M.get_template(input, is_file_path)
122
- if not template then
123
- return false
+ if not template or template == "" then
+ return true -- no template found, so do nothing (but we didn't "fail")
124
end
125
126
-- get current cursor position
0 commit comments