fix a problem with the quickfix window

This commit is contained in:
David Halter
2013-08-24 15:45:08 +04:30
parent 8672280054
commit 22149611a3
2 changed files with 8 additions and 3 deletions

View File

@@ -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 <buffer> <CR> :call s:goto_window_on_enter()<CR>
map <buffer> <CR> :call jedi#goto_window_on_enter()<CR>
endif
au WinLeave <buffer> 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

View File

@@ -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\<Tab>"
"Expect g:current_buffer_is_module('subprocess') == 1
end
end