From f0daa12f40c13ed638ad99091fd22befeb6ae5ce Mon Sep 17 00:00:00 2001 From: David Halter Date: Fri, 27 Jul 2012 10:52:42 +0200 Subject: [PATCH] vim-jedi plugin didn't work with dots only --- plugin/jedi.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugin/jedi.vim b/plugin/jedi.vim index 8ce85d9a..db316d76 100644 --- a/plugin/jedi.vim +++ b/plugin/jedi.vim @@ -21,11 +21,11 @@ if 1: print if vim.eval('a:findstart') == '1': 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): break count += 1 - vim.command('return %i' % (column - 1 - count)) + vim.command('return %i' % (column - count)) else: buf_path = vim.current.buffer.name base = vim.eval('a:base')