Merge pull request #497 from wilywampa/buffer_autocmds

Fix signatures only working in a single buffer
This commit is contained in:
Dave Halter
2015-11-07 21:15:14 +01:00
2 changed files with 17 additions and 1 deletions

View File

@@ -404,7 +404,7 @@ endfunction
function! jedi#configure_call_signatures()
augroup jedi_call_signatures
au!
autocmd! * <buffer>
if g:jedi#show_call_signatures == 2 " Command line call signatures
autocmd InsertEnter <buffer> let g:jedi#first_col = s:save_first_col()
endif

View File

@@ -21,6 +21,22 @@ describe 'signatures'
Expect getline(1) == ''
end
it 'multiple buffers'
set hidden
new
setfiletype python
redir => autocmds
autocmd jedi_call_signatures * <buffer>
redir END
Expect autocmds =~# 'jedi_call_signatures'
buffer #
redir => autocmds
autocmd jedi_call_signatures * <buffer>
redir END
Expect autocmds =~# 'jedi_call_signatures'
bd!
end
it 'simple after CursorHoldI with only parenthesis'
noautocmd normal o
doautocmd CursorHoldI