show a no documentation warning, fixes #164

This commit is contained in:
David Halter
2013-08-28 09:43:18 +04:30
parent 505c067c54
commit 63f159aa76
3 changed files with 14 additions and 2 deletions

View File

@@ -213,6 +213,7 @@ def show_documentation():
print(traceback.format_exc())
if not definitions:
echo_highlight('No documentation found for that.')
vim.command('return')
else:
docs = ['Docstring for %s\n%s\n%s' % (d.desc_with_module, '='*40, d.doc) if d.doc