all repos — st @ a047431d34aa77ac7a8fab08151fb569bbe2148e

st (suckless terminal) config

do not add newline to selection text if next line not selected (Nick)
pancake@nopcode.org unknown
commit

a047431d34aa77ac7a8fab08151fb569bbe2148e

parent

fe724836866d16a6dfd6de3ca3664033d9146a54

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M st.cst.c

@@ -420,8 +420,8 @@ sl = utf8size(term.line[y][x].c);

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