Skip to content

Commit

Permalink
use getbuline instead of getline
Browse files Browse the repository at this point in the history
  • Loading branch information
prabirshrestha committed Aug 22, 2017
1 parent 40c0a9a commit 7968b15
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/lsp.vim
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ function! s:ensure_changed(buf, server_name, cb) abort
\ 'params': {
\ 'textDocument': s:get_text_document_identifier(a:buf, l:buffer_info),
\ 'contentChanges': [
\ { 'text': join(getline(a:buf, '$'), "\n") },
\ { 'text': join(getbufline(a:buf, 1, '$'), "\n") },
\ ],
\ }
\ })
Expand Down Expand Up @@ -493,7 +493,7 @@ function! s:get_text_document(buf, buffer_info) abort
\ 'uri': lsp#utils#get_buffer_uri(a:buf),
\ 'languageId': &filetype,
\ 'version': a:buffer_info['version'],
\ 'text': join(getline(a:buf, '$'), "\n"),
\ 'text': join(getbufline(a:buf, 1, '$'), "\n"),
\ }
endfunction

Expand Down

0 comments on commit 7968b15

Please sign in to comment.