Skip to content

Commit

Permalink
Break python escape into pieces for IPython
Browse files Browse the repository at this point in the history
Fix for #109
  • Loading branch information
Vincent Rivellino committed Jul 15, 2016
1 parent bd57c78 commit 22693b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/python/slime.vim
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

function! _EscapeText_python(text)
if exists('g:slime_python_ipython') && len(split(a:text,"\n")) > 1
return "%cpaste\n".a:text."--\n"
return ["%cpaste\n", a:text."--\n"]

This comment has been minimized.

Copy link
@iveksl2

iveksl2 Dec 4, 2016

👍

else
let empty_lines_pat = '\(^\|\n\)\zs\(\s*\n\+\)\+'
let no_empty_lines = substitute(a:text, empty_lines_pat, "", "g")
Expand Down

0 comments on commit 22693b6

Please sign in to comment.