wrong dynamic modules setting, with non python files fixed

This commit is contained in:
David Halter
2012-10-04 00:38:58 +02:00
parent 1c29cd6d96
commit 391d9c940d
2 changed files with 3 additions and 2 deletions

View File

@@ -93,7 +93,8 @@ def echo_highlight(msg):
def get_script(source=None, column=None):
jedi.settings.additional_dynamic_modules = [b.name for b in vim.buffers]
jedi.settings.additional_dynamic_modules = \
[b.name for b in vim.buffers if b.name.endswith('.py')]
if source is None:
source = '\n'.join(vim.current.buffer)
row = vim.current.window.cursor[0]