Merge pull request #360 from wilywampa/escape_newline

Escape newlines in call signatures with show_call_signatures=2
This commit is contained in:
Daniel Hahler
2015-05-04 00:41:51 +02:00

View File

@@ -380,7 +380,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