mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 11:34:51 +08:00
Fix wrong call of goto in do_rename
This was overseen in dd33e38.
This is the main fix for https://github.com/davidhalter/jedi-vim/issues/41.
This commit is contained in:
@@ -476,8 +476,8 @@ def do_rename(replace, orig = None):
|
|||||||
saved_tab = int(vim_eval('tabpagenr()'))
|
saved_tab = int(vim_eval('tabpagenr()'))
|
||||||
saved_win = int(vim_eval('winnr()'))
|
saved_win = int(vim_eval('winnr()'))
|
||||||
|
|
||||||
temp_rename = goto(is_related_name=True, no_output=True)
|
temp_rename = goto(mode="related_name", no_output=True)
|
||||||
# sort the whole thing reverse (positions at the end of the line
|
# Sort the whole thing reverse (positions at the end of the line
|
||||||
# must be first, because they move the stuff before the position).
|
# must be first, because they move the stuff before the position).
|
||||||
temp_rename = sorted(temp_rename, reverse=True,
|
temp_rename = sorted(temp_rename, reverse=True,
|
||||||
key=lambda x: (x.module_path, x.start_pos))
|
key=lambda x: (x.module_path, x.start_pos))
|
||||||
|
|||||||
Reference in New Issue
Block a user