Use textEdit.range.start.character as a complete col (#1236)

This commit is contained in:
hrsh7th
2021-11-30 14:47:12 +09:00
committed by GitHub
parent 4dba81fbc3
commit a91419ea0a
3 changed files with 38 additions and 17 deletions

View File

@@ -213,7 +213,7 @@ function! s:register_events() abort
autocmd TextChangedP * call s:on_text_document_did_change()
endif
if g:lsp_untitled_buffer_enabled
autocmd FileType * call s:on_filetype_changed(bufnr('<afile>'))
autocmd FileType * call s:on_filetype_changed(bufnr(expand('<afile>')))
endif
augroup END