mirror of
https://github.com/prabirshrestha/vim-lsp.git
synced 2025-12-14 20:35:59 +01:00
Fix error on s:set_textprops() (#600)
`bufwinid()` works on current tab page only, so when user changes the current tab page, bufwinid() returns -1.
This commit is contained in:
@@ -47,7 +47,7 @@ function! s:get_line_count_buf(buf) abort
|
||||
if !has('patch-8.1.1967')
|
||||
return line('$')
|
||||
endif
|
||||
return line('$', bufwinid(a:buf))
|
||||
return line('$', win_findbuf(a:buf)[0])
|
||||
endfunction
|
||||
|
||||
function! lsp#ui#vim#folding#send_request(server_name, buf, sync) abort
|
||||
|
||||
Reference in New Issue
Block a user