mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 19:24:36 +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_win = int(vim_eval('winnr()'))
|
||||
|
||||
temp_rename = goto(is_related_name=True, no_output=True)
|
||||
# sort the whole thing reverse (positions at the end of the line
|
||||
temp_rename = goto(mode="related_name", no_output=True)
|
||||
# Sort the whole thing reverse (positions at the end of the line
|
||||
# must be first, because they move the stuff before the position).
|
||||
temp_rename = sorted(temp_rename, reverse=True,
|
||||
key=lambda x: (x.module_path, x.start_pos))
|
||||
|
||||
Reference in New Issue
Block a user