From 80166656395c80a286a3281d8aef55f95f3c74a1 Mon Sep 17 00:00:00 2001 From: Jacob Niehus Date: Sun, 8 Feb 2015 13:59:37 -0700 Subject: [PATCH] Escape newlines in call signatures --- jedi_vim.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jedi_vim.py b/jedi_vim.py index 7c5ed13..e859f3e 100644 --- a/jedi_vim.py +++ b/jedi_vim.py @@ -334,7 +334,7 @@ def cmdline_call_signatures(signatures): params = ['(' + ', '.join(p) + ')' for p in params] else: params = get_params(signatures[0]) - text = ', '.join(params).replace('"', '\\"') + text = ', '.join(params).replace('"', '\\"').replace(r'\n', r'\\n') # Allow 12 characters for ruler/showcmd - setting noruler/noshowcmd # here causes incorrect undo history