Skip to content

Commit f2031eb

Browse files
committed
Replace <anything> with the set check
1 parent 1b214e5 commit f2031eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/obsidian/util.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ util.set_checkbox = function(check_char, line_num)
545545

546546
if string.match(line, checkbox_pattern) then
547547
-- Only set the check_char if the line contains the checkbox pattern.
548-
line = util.string_replace(line, "- [" .. check_char .. "]", "- [" .. check_char .. "]", 1)
548+
line = util.string_replace(line, "- [*.]", "- [" .. check_char .. "]", 1)
549549
end
550550
-- 0-indexed
551551
vim.api.nvim_buf_set_lines(0, line_num - 1, line_num, true, { line })

0 commit comments

Comments
 (0)