diff --git a/autoload/jedi.vim b/autoload/jedi.vim index cd48c0a..486298b 100644 --- a/autoload/jedi.vim +++ b/autoload/jedi.vim @@ -102,14 +102,14 @@ function! jedi#add_goto_window() execute 'belowright copen '.g:jedi#quickfix_window_height set nolazyredraw if g:jedi#use_tabs_not_buffers == 1 - map :call s:goto_window_on_enter() + map :call jedi#goto_window_on_enter() endif au WinLeave q " automatically leave, if an option is chosen redraw! endfunction -function! s:goto_window_on_enter() +function! jedi#goto_window_on_enter() let l:list = getqflist() let l:data = l:list[line('.') - 1] if l:data.bufnr diff --git a/test/pyimport.vim b/test/pyimport.vim index ecbf574..19c228f 100644 --- a/test/pyimport.vim +++ b/test/pyimport.vim @@ -1,4 +1,3 @@ - source plugin/jedi.vim source test/utils.vim @@ -15,4 +14,10 @@ describe 'pyimport' Expect g:current_buffer_is_module('subprocess') == 1 Expect tabpagenr('$') == 2 end + + it 'completion' + " don't know how to test this. + "execute "Pyimport subproc\" + "Expect g:current_buffer_is_module('subprocess') == 1 + end end