mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-23 02:41:29 +08:00
only need to check the opening direction is correct
This commit is contained in:
@@ -135,4 +135,35 @@ describe 'goto_with_buffers'
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
describe 'goto_with_splits'
|
||||||
|
before
|
||||||
|
set filetype=python
|
||||||
|
let g:jedi#use_splits_not_buffers = 'left'
|
||||||
|
end
|
||||||
|
|
||||||
|
after
|
||||||
|
bd!
|
||||||
|
bd!
|
||||||
|
end
|
||||||
|
|
||||||
|
it 'follow_import'
|
||||||
|
put = ['import subprocess', 'subprocess']
|
||||||
|
silent normal G\g
|
||||||
|
Expect getline('.') == 'import subprocess'
|
||||||
|
Expect line('.') == 2
|
||||||
|
Expect col('.') == 8
|
||||||
|
|
||||||
|
silent normal G\d
|
||||||
|
Expect g:current_buffer_is_module('subprocess') == 1
|
||||||
|
Expect line('.') == 1
|
||||||
|
Expect col('.') == 1
|
||||||
|
wincmd l
|
||||||
|
Expect bufname('%') == ''
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
" vim: et:ts=4:sw=4
|
" vim: et:ts=4:sw=4
|
||||||
|
|||||||
Reference in New Issue
Block a user