rename: display error in case new_buffer should fail and continue

Previously it would `return`, which would not restore the previous
state.  While I am not sure that it should continue, it should at least
not return.
This commit is contained in:
Daniel Hahler
2015-05-02 16:42:36 +02:00
parent bf281dabda
commit b9ba141069

View File

@@ -457,7 +457,8 @@ def rename():
if vim.current.buffer.name != r.module_path:
result = new_buffer(r.module_path)
if not result:
return
echo_highlight("Jedi-vim: failed to create buffer window for {}!".format(r.module_path))
continue
buffers.add(vim.current.buffer.name)