We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9f2407 commit 6df9314Copy full SHA for 6df9314
lua/orgmode/org/global.lua
@@ -122,7 +122,7 @@ end
122
123
vim.api.nvim_create_user_command('Org', function(opts)
124
local item = resolve_item(opts.fargs)
125
- 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
126
return item()
127
end
128
require('orgmode.utils').echo_error(('Invalid command "Org %s"'):format(opts.args))
0 commit comments