The source project of this merge request has been removed.
Chop off trailing whitespace before printing REPL result
On my system some interpreters add some trailing whitespace to their response, and it's printed when evaluating an expression. This leads to the mini-buffer growing and shrinking unnecessarily. I usually patch this using string-trim
, but for the sake of backwards compatibility I replicated it's behaviour here manually.