Skip to content

Commit fd8a310

Browse files
merge latest
1 parent 1dcaf72 commit fd8a310

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

autoload/copilot.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,11 @@ function! s:SuggestionTextWithAdjustments() abort
236236
let leading = matchstr(choice_text, '^\s\+')
237237
let unindented = strpart(choice_text, len(leading))
238238
if strpart(typed, 0, len(leading)) == leading && unindented !=# delete
239+
let g:copilot_comp_text_latest = unindented
239240
return [unindented, len(typed) - len(leading), strchars(delete), choice]
240241
endif
241242
elseif typed ==# strpart(choice_text, 0, offset)
243+
let g:copilot_comp_text_latest = strpart(choice_text, offset)
242244
return [strpart(choice_text, offset), 0, strchars(delete), choice]
243245
endif
244246
catch

0 commit comments

Comments
 (0)