commit ff97be88d59fb4a5c00b9f1db2e64fb15396d77d from: pancake@nopcode.org date: Fri Apr 1 07:35:38 2011 UTC do not add newline to selection text if next line not selected (Nick) commit - f27e662faa00b0789bca34e9cde02101c8c64e43 commit + ff97be88d59fb4a5c00b9f1db2e64fb15396d77d blob - d0a607b116a36dc93a17a1702d81dcf9f17bbfc5 blob + 561d5b05c00c1900215e31e16250eca533e1c116 --- st.c +++ 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; }