mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 11:14:32 +08:00
rename cursor doesn't move anymore
This commit is contained in:
@@ -130,6 +130,8 @@ if 1:
|
|||||||
vim.command('normal! diw')
|
vim.command('normal! diw')
|
||||||
vim.command(':startinsert')
|
vim.command(':startinsert')
|
||||||
else:
|
else:
|
||||||
|
cursor = vim.current.window.cursor
|
||||||
|
window_path = vim.current.buffer.name
|
||||||
# reset autocommand
|
# reset autocommand
|
||||||
vim.command('autocmd! jedi_rename InsertLeave')
|
vim.command('autocmd! jedi_rename InsertLeave')
|
||||||
|
|
||||||
@@ -150,6 +152,8 @@ if 1:
|
|||||||
vim.current.window.cursor = r.start_pos
|
vim.current.window.cursor = r.start_pos
|
||||||
vim.command('normal! cw%s' % replace)
|
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))
|
echo_highlight('Jedi did %s renames!' % len(temp_rename))
|
||||||
# reset rename variables
|
# reset rename variables
|
||||||
temp_rename = None
|
temp_rename = None
|
||||||
|
|||||||
2
jedi
2
jedi
Submodule jedi updated: f6d2fdcf59...111f7c637f
Reference in New Issue
Block a user