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:
thinca
2019-12-15 14:20:10 +09:00
committed by mattn
parent feefc53ea6
commit fcf5439b90

View File

@@ -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