forked from VimPlug/jedi-vim
related_name changed sorting -> change renaming
This commit is contained in:
2
jedi
2
jedi
Submodule jedi updated: 23f36c86d7...89bd32e0d7
@@ -262,6 +262,10 @@ def rename():
|
||||
if replace is None:
|
||||
echo_highlight('No rename possible, if no name is given.')
|
||||
else:
|
||||
# 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))
|
||||
for r in temp_rename:
|
||||
if r.in_builtin_module():
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user