diff --git a/test/goto.vim b/test/goto.vim index 45acd81..bd46e86 100644 --- a/test/goto.vim +++ b/test/goto.vim @@ -135,4 +135,35 @@ describe 'goto_with_buffers' 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