Skip to content

Commit 67e5046

Browse files
committed
Better check for signature line
1 parent 15773a0 commit 67e5046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ftplugin/python/vim_ipython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def get_doc_msg(msg_id):
355355
text = content['data']['text/plain']
356356
for line in text.split('\n'):
357357
b.append(strip_color_escapes(line).rstrip())
358-
if 'signature:' in b[-1].lower():
358+
if 'signature: ' in b[-1].lower() and b[-1].endswith(')'):
359359
left, _, right = b[-1].partition(': ')
360360
b[-1] = '{0}: `{1}`'.format(left, right)
361361
return b

0 commit comments

Comments
 (0)