Fix flake8 issue

This commit is contained in:
Daniel Hahler
2018-07-15 20:53:19 +02:00
committed by Dave Halter
parent ee0f759a2e
commit 5123dbbbc7

View File

@@ -631,7 +631,7 @@ def rename():
vim_command("let s:jedi_replace_orig = expand('<cword>')") vim_command("let s:jedi_replace_orig = expand('<cword>')")
line = vim_eval('getline(".")') line = vim_eval('getline(".")')
vim_command('normal! diw') vim_command('normal! diw')
if re.match('\w+$', line[cursor[1]:]): if re.match(r'\w+$', line[cursor[1]:]):
# In case the deleted word is at the end of the line we need to # In case the deleted word is at the end of the line we need to
# move the cursor to the end. # move the cursor to the end.
vim_command('startinsert!') vim_command('startinsert!')