mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
In older versions of VIM bufname needs an argument
This commit is contained in:
@@ -13,17 +13,17 @@ describe 'simple:'
|
|||||||
|
|
||||||
it 'choose'
|
it 'choose'
|
||||||
Expect g:jedi#environment_path == 'auto'
|
Expect g:jedi#environment_path == 'auto'
|
||||||
Expect bufname() == ''
|
Expect bufname('%') == ''
|
||||||
|
|
||||||
JediChooseEnvironment
|
JediChooseEnvironment
|
||||||
" A Python executable needs to be a few letters
|
" A Python executable needs to be a few letters
|
||||||
Expect len(getline('.')) > 5
|
Expect len(getline('.')) > 5
|
||||||
Expect bufname() == 'Hit Enter to Choose an Environment'
|
Expect bufname('%') == 'Hit Enter to Choose an Environment'
|
||||||
|
|
||||||
execute "normal \<CR>"
|
execute "normal \<CR>"
|
||||||
Expect g:jedi#environment_path != 'auto'
|
Expect g:jedi#environment_path != 'auto'
|
||||||
bd " TODO why is this necessary? There seems to be a random buffer.
|
bd " TODO why is this necessary? There seems to be a random buffer.
|
||||||
Expect bufname() == ''
|
Expect bufname('%') == ''
|
||||||
Expect getline('.') == 'foo'
|
Expect getline('.') == 'foo'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user