20 lines
548 B
Diff
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()
|