billiob pushed a commit to branch terminology-1.4. http://git.enlightenment.org/apps/terminology.git/commit/?id=67de5e75b28dce5539e25af357418ab98bbae1b2
commit 67de5e75b28dce5539e25af357418ab98bbae1b2 Author: Boris Faure <[email protected]> Date: Sun May 5 12:56:23 2019 +0200 termio: do replace \n by \r when pasting --- src/bin/termio.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/bin/termio.c b/src/bin/termio.c index 6334232..dc06126 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -1047,10 +1047,11 @@ _getsel_cb(void *data, { continue; } - for (j = prev_i; j < i; j++) - buf[pos++] = s[j]; if (g == '\n') buf[pos++] = '\r'; + else + for (j = prev_i; j < i; j++) + buf[pos++] = s[j]; } if (pos) { --
