fix: follow the prev slash command strategy (#1835)
This commit is contained in:
@@ -2574,8 +2574,7 @@ function Sidebar:create_input_container(opts)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
local has_cmp = pcall(require, "cmp")
|
if request:sub(1, 1) == "/" then
|
||||||
if request:sub(1, 1) == "/" and not has_cmp then
|
|
||||||
local command, args = request:match("^/(%S+)%s*(.*)")
|
local command, args = request:match("^/(%S+)%s*(.*)")
|
||||||
if command == nil then
|
if command == nil then
|
||||||
self:update_content("Invalid command", { focus = false, scroll = false })
|
self:update_content("Invalid command", { focus = false, scroll = false })
|
||||||
|
|||||||
Reference in New Issue
Block a user