rename: fix opening new windows with &shellslash (Windows)

Ref: https://github.com/davidhalter/jedi-vim/pull/364#issuecomment-98418501
This commit is contained in:
Daniel Hahler
2015-05-03 17:13:25 +02:00
parent fb77981040
commit 054285e2b7

View File

@@ -475,7 +475,7 @@ def do_rename(replace, orig = None):
if r.in_builtin_module(): if r.in_builtin_module():
continue continue
if vim.current.buffer.name != r.module_path: if os.path.abspath(vim.current.buffer.name) != r.module_path:
result = new_buffer(r.module_path) result = new_buffer(r.module_path)
if not result: if not result:
echo_highlight("Jedi-vim: failed to create buffer window for {}!".format(r.module_path)) echo_highlight("Jedi-vim: failed to create buffer window for {}!".format(r.module_path))