Skip to content

Commit 53d3091

Browse files
committed
Copilot.vim 1.34.0
1 parent c79d711 commit 53d3091

File tree

5 files changed

+154
-153
lines changed

5 files changed

+154
-153
lines changed

autoload/copilot.vim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,8 +493,9 @@ function! copilot#Accept(...) abort
493493
endif
494494
call s:ClearPreview()
495495
let s:suggestion_text = text
496+
let recall = text =~# "\n" ? "\<C-R>\<C-O>=" : "\<C-R>\<C-R>="
496497
return repeat("\<Left>\<Del>", s.outdentSize) . repeat("\<Del>", s.deleteSize) .
497-
\ "\<C-R>\<C-O>=copilot#TextQueuedForInsertion()\<CR>" . (a:0 > 1 ? '' : "\<End>")
498+
\ recall . "copilot#TextQueuedForInsertion()\<CR>" . (a:0 > 1 ? '' : "\<End>")
498499
endif
499500
let default = get(g:, 'copilot_tab_fallback', pumvisible() ? "\<C-N>" : "\t")
500501
if !a:0

autoload/copilot/client.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ function! s:GetNodeVersion(command) abort
455455
return {'status': status, 'string': string, 'major': major, 'minor': minor}
456456
endfunction
457457

458-
let s:script_name = 'dist/agent.js'
458+
let s:script_name = 'dist/language-server.js'
459459
function! s:Command() abort
460460
if !has('nvim-0.6') && v:version < 900
461461
return [v:null, '', 'Vim version too old']

autoload/copilot/version.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
function! copilot#version#String() abort
2-
return '1.33.0'
2+
return '1.34.0'
33
endfunction

dist/agent.js renamed to dist/language-server.js

Lines changed: 148 additions & 148 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/agent.js.map renamed to dist/language-server.js.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)