mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-09 12:04:50 +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):
|
def echo_highlight(msg):
|
||||||
vim_command('echohl WarningMsg | echom "{0}" | echohl None'.format(
|
vim_command('echohl WarningMsg | echom "jedi-vim: {0}" | echohl None'.format(
|
||||||
msg.replace('"', '\\"')))
|
str(msg).replace('"', '\\"')))
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user