forked from VimPlug/jedi-vim
Merge branch 'master' of github.com:davidhalter/jedi-vim
This commit is contained in:
@@ -96,10 +96,11 @@ endfunction
|
|||||||
" helper functions
|
" helper functions
|
||||||
" ------------------------------------------------------------------------
|
" ------------------------------------------------------------------------
|
||||||
|
|
||||||
function! jedi#add_goto_window()
|
function! jedi#add_goto_window(len)
|
||||||
set lazyredraw
|
set lazyredraw
|
||||||
cclose
|
cclose
|
||||||
execute 'belowright copen '.g:jedi#quickfix_window_height
|
let height = min([a:len, g:jedi#quickfix_window_height])
|
||||||
|
execute 'belowright copen '.height
|
||||||
set nolazyredraw
|
set nolazyredraw
|
||||||
if g:jedi#use_tabs_not_buffers == 1
|
if g:jedi#use_tabs_not_buffers == 1
|
||||||
noremap <buffer> <CR> :call jedi#goto_window_on_enter()<CR>
|
noremap <buffer> <CR> :call jedi#goto_window_on_enter()<CR>
|
||||||
|
|||||||
@@ -236,7 +236,7 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
|
|||||||
lnum=d.line, col=d.column + 1,
|
lnum=d.line, col=d.column + 1,
|
||||||
text=PythonToVimStr(d.description)))
|
text=PythonToVimStr(d.description)))
|
||||||
vim_eval('setqflist(%s)' % repr(lst))
|
vim_eval('setqflist(%s)' % repr(lst))
|
||||||
vim_eval('jedi#add_goto_window()')
|
vim_eval('jedi#add_goto_window(' + str(len(lst)) + ')')
|
||||||
return definitions
|
return definitions
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user