mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 10:54:22 +08:00
Fix flake8 W605: invalid escape sequence '\{w,d}'
This commit is contained in:
committed by
Dave Halter
parent
6781eb17da
commit
f07ff6a535
@@ -226,7 +226,7 @@ def completions():
|
||||
if vim.eval('a:findstart') == '1':
|
||||
count = 0
|
||||
for char in reversed(vim.current.line[:column]):
|
||||
if not re.match('[\w\d]', char):
|
||||
if not re.match(r'[\w\d]', char):
|
||||
break
|
||||
count += 1
|
||||
vim.command('return %i' % (column - count))
|
||||
|
||||
Reference in New Issue
Block a user