We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa73e5f commit 7798150Copy full SHA for 7798150
lua/opencode/ui/input_window.lua
@@ -89,7 +89,8 @@ M._execute_slash_command = function(command)
89
end, slash_commands)[1]
90
91
if command_cfg then
92
- command_cfg.fn(vim.list_slice(parts, 2))
+ local args = #parts > 1 and vim.list_slice(parts, 2) or nil
93
+ command_cfg.fn(args)
94
else
95
vim.notify('Unknown command: ' .. cmd, vim.log.levels.WARN)
96
end
0 commit comments