forked from VimPlug/jedi-vim
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user