From 9ffe55ad9b88ea5101ba73a00ed8fe7372e78b71 Mon Sep 17 00:00:00 2001 From: David Halter Date: Mon, 10 Sep 2012 23:55:42 +0200 Subject: [PATCH] fix for renamings at the line end --- jedi.vim | 3 +++ 1 file changed, 3 insertions(+) diff --git a/jedi.vim b/jedi.vim index b6d4cfa..720cdc4 100644 --- a/jedi.vim +++ b/jedi.vim @@ -102,6 +102,9 @@ if 1: temp_rename = _goto(is_related_name=True, no_output=True) _rename_cursor = vim.current.window.cursor + vim.command('normal A ') # otherwise startinsert doesn't work well + vim.current.window.cursor = _rename_cursor + vim.command('augroup jedi_rename') vim.command('autocmd InsertLeave * call jedi#rename()') vim.command('augroup END')