forked from VimPlug/jedi-vim
vim-jedi plugin didn't work with dots only
This commit is contained in:
4
jedi.vim
4
jedi.vim
@@ -21,11 +21,11 @@ if 1:
|
|||||||
print
|
print
|
||||||
if vim.eval('a:findstart') == '1':
|
if vim.eval('a:findstart') == '1':
|
||||||
count = 0
|
count = 0
|
||||||
for char in reversed(vim.current.line[:column-1]):
|
for char in reversed(vim.current.line[:column]):
|
||||||
if not re.match('[\w\d]', char):
|
if not re.match('[\w\d]', char):
|
||||||
break
|
break
|
||||||
count += 1
|
count += 1
|
||||||
vim.command('return %i' % (column - 1 - count))
|
vim.command('return %i' % (column - count))
|
||||||
else:
|
else:
|
||||||
buf_path = vim.current.buffer.name
|
buf_path = vim.current.buffer.name
|
||||||
base = vim.eval('a:base')
|
base = vim.eval('a:base')
|
||||||
|
|||||||
Reference in New Issue
Block a user