@@ -202,7 +202,8 @@ function! s:SuggestionTextWithAdjustments() abort
202202 endif
203203 let line = getline (' .' )
204204 let offset = col (' .' ) - 1
205- let choice_text = strpart (line , 0 , copilot#util#UTF16ToByteIdx (line , choice.range .start .character )) . substitute (choice.insertText, " \n *$" , ' ' , ' ' )
205+ let byte_offset = copilot#util#UTF16ToByteIdx (line , choice.range .start .character )
206+ let choice_text = strpart (line , 0 , byte_offset) . substitute (choice.insertText, " \n *$" , ' ' , ' ' )
206207 let typed = strpart (line , 0 , offset)
207208 let end_offset = copilot#util#UTF16ToByteIdx (line , choice.range .end .character )
208209 if end_offset < 0
@@ -665,13 +666,13 @@ function! s:commands.setup(opts) abort
665666 if request.status == # ' error'
666667 return ' echoerr ' . string (' Copilot: Authentication failure: ' . request.error .message)
667668 else
668- let status = request.result
669+ let data = request.result
669670 endif
670671 elseif get (data, ' status' , ' ' ) isnot # ' AlreadySignedIn'
671672 return ' echoerr ' . string (' Copilot: Something went wrong' )
672673 endif
673674
674- let user = get (status , ' user' , ' <unknown>' )
675+ let user = get (data , ' user' , ' <unknown>' )
675676
676677 echo ' Copilot: Authenticated as GitHub user ' . user
677678endfunction
@@ -719,7 +720,7 @@ function! s:commands.version(opts) abort
719720 call s: EditorVersionWarning ()
720721endfunction
721722
722- let s: feedback_url = ' https://github.com/orgs/community/discussions/categories/ copilot'
723+ let s: feedback_url = ' https://github.com/github/ copilot.vim/issues '
723724function ! s: commands .feedback (opts) abort
724725 echo s: feedback_url
725726 let browser = copilot#Browser ()
0 commit comments