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
|
silent execute 'sbuffer '.bn
|
||||||
endif
|
endif
|
||||||
else
|
else
|
||||||
split '__doc__'
|
split __doc__
|
||||||
endif
|
endif
|
||||||
|
|
||||||
setlocal modifiable
|
setlocal modifiable
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ describe 'documentation docstrings'
|
|||||||
it 'simple'
|
it 'simple'
|
||||||
put = 'ImportError'
|
put = 'ImportError'
|
||||||
normal GK
|
normal GK
|
||||||
Expect bufname('%') == "'__doc__'"
|
Expect bufname('%') == "__doc__"
|
||||||
Expect &filetype == 'rst'
|
Expect &filetype == 'rst'
|
||||||
let content = join(getline(1,'$'), "\n")
|
let content = join(getline(1,'$'), "\n")
|
||||||
Expect stridx(content, "Import can't find module") > 0
|
Expect stridx(content, "Import can't find module") > 0
|
||||||
|
|||||||
Reference in New Issue
Block a user