termio: do replace \n by \r when pasting
This commit is contained in:
parent
f1837dbc0c
commit
67de5e75b2
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue