From ba0b44b65d6092f9094830b6eab510f07dcdca4b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 3 Aug 2016 11:19:09 +0200 Subject: [PATCH] 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))`. --- jedi_vim.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jedi_vim.py b/jedi_vim.py index c2cbfc6..3fbb80b 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -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: