X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=st.c;h=561d5b05c00c1900215e31e16250eca533e1c116;hb=a047431d34aa77ac7a8fab08151fb569bbe2148e;hp=d0a607b116a36dc93a17a1702d81dcf9f17bbfc5;hpb=fe724836866d16a6dfd6de3ca3664033d9146a54;p=st.git diff --git a/st.c b/st.c index d0a607b..561d5b0 100644 --- a/st.c +++ b/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; }