mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
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)
|
||||
if not result:
|
||||
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
|
||||
with tempfile('{0}\t{1}\t{2}'.format(tagname, d.module_path,
|
||||
'call cursor({0}, {1})'.format(d.line, d.column + 1))) as f:
|
||||
|
||||
Reference in New Issue
Block a user