@@ -21,7 +21,7 @@ T["keymaps()"]["passthrough Esc - base test setting highlight"] = function()
2121 child .lua ([[
2222 require("copilot.keymaps").register_keymap_with_passthrough("n", "<Esc>", function()
2323 return true
24- end, "Passthrough Esc")
24+ end, "Passthrough Esc", vim.api.nvim_get_current_buf() )
2525 ]] )
2626 child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" )
2727 child .type_keys (" /123" , " <CR>" )
@@ -37,7 +37,7 @@ T["keymaps()"]["passthrough Esc with func - return false, will remove hl"] = fun
3737 child .lua ([[
3838 require("copilot.keymaps").register_keymap_with_passthrough("n", "<esc>", function()
3939 return false
40- end, "Passthrough Esc")
40+ end, "Passthrough Esc", vim.api.nvim_get_current_buf() )
4141 ]] )
4242 child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" )
4343 child .type_keys (" /123" , " <CR>" )
@@ -50,9 +50,9 @@ T["keymaps()"]["passthrough Esc - return false, will remove hl"] = function()
5050 child .o .lines , child .o .columns = 10 , 15
5151 child .lua ([[ vim.keymap.set("n", "<Esc>", "<cmd>noh<CR>", { desc = "general clear highlights" })]] )
5252 child .lua ([[
53- require("copilot.keymaps").register_keymap_with_passthrough("n", "<Esc >", function()
53+ require("copilot.keymaps").register_keymap_with_passthrough("n", "<esc >", function()
5454 return false
55- end, "Passthrough Esc")
55+ end, "Passthrough Esc", vim.api.nvim_get_current_buf() )
5656 ]] )
5757 child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" )
5858 child .type_keys (" /123" , " <CR>" )
@@ -67,7 +67,7 @@ T["keymaps()"]["passthrough Esc - return true, will not remove hl"] = function()
6767 child .lua ([[
6868 require("copilot.keymaps").register_keymap_with_passthrough("n", "<Esc>", function()
6969 return true
70- end, "Passthrough Esc")
70+ end, "Passthrough Esc", vim.api.nvim_get_current_buf() )
7171 ]] )
7272 child .type_keys (" i123" , " <Esc>" , " o456" , " <Esc>" )
7373 child .type_keys (" /123" , " <CR>" )
0 commit comments