Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e5b32a6

Browse files
committed
Add support for printing error from IPython 3
1 parent 8c1c0ad commit e5b32a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ftplugin/python/vim_ipython.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def update_subchannel_msgs(debug=False, force=False):
421421
dots = '.' * len(prompt.rstrip())
422422
dots += prompt[len(prompt.rstrip()):]
423423
s += m['content']['code'].rstrip().replace('\n', '\n' + dots)
424-
elif header == 'pyerr':
424+
elif header == 'pyerr' or header == 'error':
425425
c = m['content']
426426
s = "\n".join(map(strip_color_escapes,c['traceback']))
427427
s += c['ename'] + ":" + c['evalue']

0 commit comments

Comments
 (0)