mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-07 03:04:30 +08:00
Fix no_jedi_warning: display actual error
Never really worked as intended in 676b378.
Ref: https://github.com/davidhalter/jedi-vim/issues/460
This commit is contained in:
@@ -78,12 +78,11 @@ def vim_eval(string):
|
||||
|
||||
|
||||
def no_jedi_warning(error=None):
|
||||
msg = "Please install Jedi if you want to use jedi-vim."
|
||||
vim.command('echohl WarningMsg')
|
||||
vim.command('echom "Please install Jedi if you want to use jedi-vim."')
|
||||
if error:
|
||||
msg = '{0} The error was: {1}'.format(msg, error)
|
||||
vim.command('echohl WarningMsg'
|
||||
'| echom "Please install Jedi if you want to use jedi-vim."'
|
||||
'| echohl None')
|
||||
vim.command('echom "The error was: {0}"'.format(error))
|
||||
vim.command('echohl None')
|
||||
|
||||
|
||||
def echo_highlight(msg):
|
||||
|
||||
Reference in New Issue
Block a user