Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/orgmode/org/global.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ end

vim.api.nvim_create_user_command('Org', function(opts)
local item = resolve_item(opts.fargs)
if item and (type(item) == 'function' or getmetatable(item).__call) then
if item and (type(item) == 'function' or (getmetatable(item) and getmetatable(item).__call)) then
return item()
end
require('orgmode.utils').echo_error(('Invalid command "Org %s"'):format(opts.args))
Expand Down