Skip to content

Commit e1f3054

Browse files
Merge pull request #231 from jgollenz/fix/open-template-by-shortcut
2 parents 2adb21e + 50dd338 commit e1f3054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/capture/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ end
5151

5252
---@param shortcut string
5353
function Capture:open_template_by_shortcut(shortcut)
54-
local template = self.templates[shortcut]
54+
local template = self.templates:get_list()[shortcut]
5555
if not template then
5656
return utils.echo_error('No capture template with shortcut ' .. shortcut)
5757
end

0 commit comments

Comments
 (0)