mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 19:44:52 +08:00
avoid problems if doc is opened
This commit is contained in:
@@ -27,8 +27,8 @@ def echo_highlight(msg):
|
|||||||
|
|
||||||
|
|
||||||
def get_script(source=None, column=None):
|
def get_script(source=None, column=None):
|
||||||
jedi.settings.additional_dynamic_modules = \
|
jedi.settings.additional_dynamic_modules = [b.name for b in vim.buffers
|
||||||
[b.name for b in vim.buffers if b.name.endswith('.py')]
|
if b.name is not None and b.name.endswith('.py')]
|
||||||
if source is None:
|
if source is None:
|
||||||
source = '\n'.join(vim.current.buffer)
|
source = '\n'.join(vim.current.buffer)
|
||||||
row = vim.current.window.cursor[0]
|
row = vim.current.window.cursor[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user