builtin modules cannot be displayed, but show the path where they are located

This commit is contained in:
David Halter
2013-08-07 10:59:23 +04:30
parent cf6551f17e
commit 6028e0d379

View File

@@ -137,7 +137,8 @@ def goto(is_definition=False, is_related_name=False, no_output=False):
echo_highlight(
"Cannot get the definition of Python keywords.")
else:
echo_highlight("Builtin modules cannot be displayed.")
echo_highlight("Builtin modules cannot be displayed (%s)."
% d.module_path)
else:
if d.module_path != vim.current.buffer.name:
vim.eval('jedi#new_buffer(%s)' % \