rename cursor doesn't move anymore

This commit is contained in:
David Halter
2012-09-23 12:38:51 +02:00
parent 05cac0c585
commit f64c64d1bc
2 changed files with 5 additions and 1 deletions

View File

@@ -130,6 +130,8 @@ if 1:
vim.command('normal! diw')
vim.command(':startinsert')
else:
cursor = vim.current.window.cursor
window_path = vim.current.buffer.name
# reset autocommand
vim.command('autocmd! jedi_rename InsertLeave')
@@ -150,6 +152,8 @@ if 1:
vim.current.window.cursor = r.start_pos
vim.command('normal! cw%s' % replace)
vim.current.window.cursor = cursor
vim.eval("jedi#new_buffer('%s')" % window_path)
echo_highlight('Jedi did %s renames!' % len(temp_rename))
# reset rename variables
temp_rename = None

2
jedi

Submodule jedi updated: f6d2fdcf59...111f7c637f