Skip to content

Commit e4d88cb

Browse files
monkey patch
1 parent fd8a310 commit e4d88cb

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

autoload/copilot.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,9 @@ 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
240239
return [unindented, len(typed) - len(leading), strchars(delete), choice]
241240
endif
242241
elseif typed ==# strpart(choice_text, 0, offset)
243-
let g:copilot_comp_text_latest = strpart(choice_text, offset)
244242
return [strpart(choice_text, offset), 0, strchars(delete), choice]
245243
endif
246244
catch

0 commit comments

Comments
 (0)