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

dev
pancake@nopcode.org 2011-04-01 09:35:38 +02:00
parent fe72483686
commit a047431d34
1 changed files with 2 additions and 2 deletions

4
st.c
View File

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