mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-08 03:24:47 +08:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user