Skip to content

Commit 891aee9

Browse files
committed
fix: incorrectly used 0.11 instead of 0.10 as cutoff
1 parent c62a2a7 commit 891aee9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/copilot/suggestion/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ function M.accept(modifier)
544544
local cursor_keys = "<End>"
545545

546546
-- TODO: Move to util and check only once
547-
if vim.fn.has("nvim-0.11") == 1 then
547+
if vim.fn.has("nvim-0.10") == 1 then
548548
cursor_keys = string.rep("<Down>", #vim.split(newText, "\n", { plain = true }) - 1) .. cursor_keys
549549
end
550550
vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes(cursor_keys, true, false, true), "n", false)

0 commit comments

Comments
 (0)