Skip to content

Commit

Permalink
Merge pull request #360 from wilywampa/escape_newline
Browse files Browse the repository at this point in the history
Escape newlines in call signatures with show_call_signatures=2
  • Loading branch information
blueyed committed May 3, 2015
2 parents 054285e + 8016665 commit 1bf69c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jedi_vim.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def get_params(s):
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
Expand Down

0 comments on commit 1bf69c5

Please sign in to comment.