Skip to content

Commit 83df5bf

Browse files
fix(global): require at least one argument for Org command
1 parent 6df9314 commit 83df5bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/orgmode/org/global.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ vim.api.nvim_create_user_command('Org', function(opts)
127127
end
128128
require('orgmode.utils').echo_error(('Invalid command "Org %s"'):format(opts.args))
129129
end, {
130-
nargs = '*',
130+
nargs = '+',
131131
complete = function(arg_lead, cmd_line)
132132
local opts = vim.split(cmd_line:sub(5), '%s+')
133133
local item = resolve_item(opts)

0 commit comments

Comments
 (0)