do not add newline to selection text if next line not selected (Nick)

wchar
pancake@nopcode.org 13 years ago
parent fe72483686
commit a047431d34

@ -420,8 +420,8 @@ selcopy(void) {
memcpy(ptr, term.line[y][x].c, sl);
ptr += sl;
}
if(ls)
*ptr = '\n', ptr++;
if(ls && y < sel.e.y)
*ptr++ = '\n';
}
*ptr = 0;
}

Loading…
Cancel
Save