From df39189578d2b76fe87a75101b1ca0c43015d36c Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Fri, 18 Mar 2016 23:04:23 +0100 Subject: [PATCH] Fix no_jedi_warning: display actual error Never really worked as intended in 676b378. Ref: https://github.com/davidhalter/jedi-vim/issues/460 --- jedi_vim.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/jedi_vim.py b/jedi_vim.py index 166529a..862ad3a 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -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):