pk/st
1
0
mirror of https://github.com/pikami/st.git synced 2025-04-07 10:18:01 +01:00

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

This commit is contained in:
pancake@nopcode.org 2011-04-01 09:35:38 +02:00
parent f27e662faa
commit ff97be88d5

4
st.c

@ -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;
}