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 77f8240 commit 9d97bcbCopy full SHA for 9d97bcb
autoload/lsp/ui/vim/folding.vim
@@ -181,7 +181,7 @@ function! s:handle_fold_request(server, data) abort
181
" Set 'foldmethod' back to 'expr', which forces a re-evaluation of
182
" 'foldexpr'. Only do this if the user hasn't changed 'foldmethod',
183
" and this is the correct buffer.
184
- let l:current_window = bufwinnr('%')
+ let l:current_window = bufwinnr()
185
windo if &l:foldmethod ==# 'expr' && bufnr('%') == l:bufnr | let &l:foldmethod = 'expr' | endif
186
execute l:current_window . 'wincmd w'
187
endfunction
0 commit comments