echo_highlight: cast msg to str

This helps to avoid errors with incomplete traceback/exception details
when using it with e.g. `echo_highlight(dir(jedi))`.
This commit is contained in:
Daniel Hahler
2016-08-03 11:19:09 +02:00
parent 369284a6bc
commit ba0b44b65d

View File

@@ -87,8 +87,8 @@ def no_jedi_warning(error=None):
def echo_highlight(msg):
vim_command('echohl WarningMsg | echom "{0}" | echohl None'.format(
msg.replace('"', '\\"')))
vim_command('echohl WarningMsg | echom "jedi-vim: {0}" | echohl None'.format(
str(msg).replace('"', '\\"')))
try: