From abc0c07d0fe1a8613e3180a0ab0eea01451b57a0 Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Sat, 9 May 2015 22:36:57 +0200 Subject: [PATCH] echo_highlight: escape quotes in msg --- jedi_vim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index d718e21..7036967 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -77,7 +77,8 @@ def no_jedi_warning(): def echo_highlight(msg): - vim_command('echohl WarningMsg | echom "%s" | echohl None' % msg) + vim_command('echohl WarningMsg | echom "{}" | echohl None'.format( + msg.replace('"', '\\"'))) import vim