1
0
forked from VimPlug/jedi

builtin modules should not be renamed

This commit is contained in:
David Halter
2012-09-12 01:27:25 +02:00
parent ebc81a1952
commit 74e90bf1d6

View File

@@ -128,6 +128,8 @@ if 1:
echo_highlight('No rename possible, if no name is given.')
else:
for r in temp_rename:
if r.in_builtin_module():
continue
start_pos = r.start_pos + (0, 1) # vim cursor starts with 1 indent
if vim.current.buffer.name != r.module_path:
vim.eval("jedi#new_buffer('%s')" % r.module_path)