echo_highlight: escape quotes in msg

This commit is contained in:
Daniel Hahler
2015-05-09 22:36:57 +02:00
parent 0747189516
commit abc0c07d0f

View File

@@ -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