vim-jedi/jedi-vim-0.9.0-fix-debug.patch
Pavel Raiskup 0826688fab new version 0.9.0
Resolves: rhbz#1559214
Version: 0.9.0-1
2019-02-25 07:46:41 +01:00

20 lines
548 B
Diff

Fix :JediDebugInfo command
This got somehow fixed upstream, will be part of next release.
diff --git a/pythonx/jedi_vim_debug.py b/pythonx/jedi_vim_debug.py
index 81633e7..40231b8 100644
--- a/pythonx/jedi_vim_debug.py
+++ b/pythonx/jedi_vim_debug.py
@@ -3,9 +3,10 @@
def display_debug_info():
import vim
+ import pipes
def echo(msg):
- vim.command('echo {0}'.format(msg))
+ vim.command('echo {0}'.format(pipes.quote(msg)))
echo("printf(' - sys.version: `%s`', {0!r})".format(
', '.join([x.strip()