forked from VimPlug/jedi-vim
jedi#show_documentation: do not use quotes around bufname
This commit is contained in:
committed by
Dave Halter
parent
c8164fdfda
commit
72c1a332d2
@@ -364,7 +364,7 @@ function! jedi#show_documentation() abort
|
||||
silent execute 'sbuffer '.bn
|
||||
endif
|
||||
else
|
||||
split '__doc__'
|
||||
split __doc__
|
||||
endif
|
||||
|
||||
setlocal modifiable
|
||||
|
||||
@@ -13,7 +13,7 @@ describe 'documentation docstrings'
|
||||
it 'simple'
|
||||
put = 'ImportError'
|
||||
normal GK
|
||||
Expect bufname('%') == "'__doc__'"
|
||||
Expect bufname('%') == "__doc__"
|
||||
Expect &filetype == 'rst'
|
||||
let content = join(getline(1,'$'), "\n")
|
||||
Expect stridx(content, "Import can't find module") > 0
|
||||
|
||||
Reference in New Issue
Block a user