forked from VimPlug/jedi-vim
Only use the tagstack if the file actually exists
This caused problems when using jedi-vim without an actual file behind a buffer.
This commit is contained in:
@@ -270,7 +270,7 @@ def goto(mode="goto", no_output=False):
|
|||||||
using_tagstack=using_tagstack)
|
using_tagstack=using_tagstack)
|
||||||
if not result:
|
if not result:
|
||||||
return []
|
return []
|
||||||
if d.module_path and using_tagstack:
|
if d.module_path and os.path.exists(d.module_path) and using_tagstack:
|
||||||
tagname = d.name
|
tagname = d.name
|
||||||
with tempfile('{0}\t{1}\t{2}'.format(tagname, d.module_path,
|
with tempfile('{0}\t{1}\t{2}'.format(tagname, d.module_path,
|
||||||
'call cursor({0}, {1})'.format(d.line, d.column + 1))) as f:
|
'call cursor({0}, {1})'.format(d.line, d.column + 1))) as f:
|
||||||
|
|||||||
Reference in New Issue
Block a user