Merge branch 'terminology-1.4'

This commit is contained in:
Boris Faure 2019-05-05 12:57:28 +02:00
commit 43224731e0
1 changed files with 3 additions and 2 deletions

View File

@ -1047,10 +1047,11 @@ _getsel_cb(void *data,
{ {
continue; continue;
} }
for (j = prev_i; j < i; j++)
buf[pos++] = s[j];
if (g == '\n') if (g == '\n')
buf[pos++] = '\r'; buf[pos++] = '\r';
else
for (j = prev_i; j < i; j++)
buf[pos++] = s[j];
} }
if (pos) if (pos)
{ {