mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-10-30 01:17:27 +08:00
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:
1 parent
bf281dabda
commit
b9ba141069
1 file changed
+2
-1
+2
-1
@@ -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