related_name changed sorting -> change renaming

This commit is contained in:
David Halter
2013-01-04 15:11:41 +01:00
parent 62d9b564f9
commit 74d93b8c3d
2 changed files with 5 additions and 1 deletions

2
jedi

Submodule jedi updated: 23f36c86d7...89bd32e0d7

View File

@@ -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