mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-01 07:53:59 +08:00
A small fix
This commit is contained in:
1 parent
dc0fdc55cb
commit
04ba9a2430
1 file changed
+3
@@ -297,6 +297,9 @@ def get_script(source=None):
|
||||
if source is None:
|
||||
source = '\n'.join(vim.current.buffer)
|
||||
buf_path = vim.current.buffer.name
|
||||
if not buf_path:
|
||||
# If a buffer has no name its name is an empty string.
|
||||
buf_path = None
|
||||
|
||||
return jedi.Script(source, path=buf_path, project=get_project())
|
||||
|
||||
|
||||
Reference in new issue
Block a user