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:
Daniel Hahler
2015-05-12 21:21:33 +02:00
parent 651eac91ff
commit d79f41149f

View File

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