From 054285e2b7485d4adabfd4956806e6567eedebfe Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sun, 3 May 2015 17:13:25 +0200 Subject: [PATCH] rename: fix opening new windows with &shellslash (Windows) Ref: https://github.com/davidhalter/jedi-vim/pull/364#issuecomment-98418501 --- jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index 7c2fddd..187ef02 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -475,7 +475,7 @@ def do_rename(replace, orig = None): if r.in_builtin_module(): 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) if not result: echo_highlight("Jedi-vim: failed to create buffer window for {}!".format(r.module_path))