Skip to content

Commit cb1a982

Browse files
committed
fix: ensure bufnr is part of the previous keymap key
1 parent 3ea8f8c commit cb1a982

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/keymaps/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ function M.register_keymap_with_passthrough(mode, key, action, desc, bufnr)
4343
return
4444
end
4545

46-
local keymap_key = mode .. ":" .. key
46+
local keymap_key = bufnr .. ":" .. mode .. ":" .. key
4747
-- Save any existing mapping for this key
4848
local existing = vim.fn.maparg(key, mode, false, true)
4949
if existing then

0 commit comments

Comments
 (0)