Skip to content

Commit

Permalink
Merge pull request #89 from jinyeow/patch-1
Browse files Browse the repository at this point in the history
Fixed issue where python code was not being executed when sent to python interpreter.
  • Loading branch information
jpalardy committed Dec 6, 2015
2 parents 62aa4d1 + dba21ca commit 7c1b6dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ftplugin/python/slime.vim
Expand Up @@ -4,7 +4,7 @@ function! _EscapeText_python(text)
return "%cpaste\n".a:text."--\n"
else
let no_empty_lines = substitute(a:text, '\n\s*\ze\n', "", "g")
return substitute(no_empty_lines, "\n", "", "g")
return substitute(no_empty_lines, "\n", "", "g")."\n"
end
endfunction

0 comments on commit 7c1b6dc

Please sign in to comment.