We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fdb69ab commit eba0839Copy full SHA for eba0839
autoload/lsp/ui/vim/folding.vim
@@ -47,7 +47,8 @@ function! s:get_line_count_buf(buf) abort
47
if !has('patch-8.1.1967')
48
return line('$')
49
endif
50
- return line('$', win_findbuf(a:buf)[0])
+ let l:winids = win_findbuf(a:buf)
51
+ return empty(l:winids) ? line('$') : line('$', l:winids[0])
52
endfunction
53
54
function! lsp#ui#vim#folding#send_request(server_name, buf, sync) abort
0 commit comments