mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-13 00:20:29 +08:00
only need to check the opening direction is correct
This commit is contained in:
1 parent
b8edeef966
commit
aa56af0d9c
1 file changed
+31
@@ -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