Skip to content

Commit

Permalink
fix: Improve regexp for command completion in chat (#348)
Browse files Browse the repository at this point in the history
  • Loading branch information
festeh committed May 31, 2024
1 parent 51375b1 commit 246ef54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/CopilotChat/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ local function complete()
return
end

local prefix, cmp_start = unpack(vim.fn.matchstrpos(line:sub(1, col), '\\/\\|@\\k*$'))
local prefix, cmp_start = unpack(vim.fn.matchstrpos(line:sub(1, col), [[\(/\|@\)\k*$]]))
if not prefix then
return
end
Expand Down

0 comments on commit 246ef54

Please sign in to comment.