mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2026-11-06 04:13:03 +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:
|
if 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:
|
||||||
return
|
echo_highlight("Jedi-vim: failed to create buffer window for {}!".format(r.module_path))
|
||||||
|
continue
|
||||||
|
|
||||||
buffers.add(vim.current.buffer.name)
|
buffers.add(vim.current.buffer.name)
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user