all repos — st @ 2411308bd24c4db97a3bb06d38f183a679aec1ea

st (suckless terminal) config

Fixed copying empty lines inside selection.

The code was assuming that empty lines have implicit wrap-around attribute.

Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
Alexander alex0player@gmail.com
commit

2411308bd24c4db97a3bb06d38f183a679aec1ea

parent

d03aa8d20bcc8a94a7737331a9ec0bf11df3e572

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

jump to
M st.cst.c

@@ -949,7 +949,7 @@ * '\r', when something to be pasted is received by

* st. * FIXME: Fix the computer world. */ - if(y < sel.ne.y && x > 0 && !((gp-1)->mode & ATTR_WRAP)) + if(y < sel.ne.y && !(x > 0 && (gp-1)->mode & ATTR_WRAP)) *ptr++ = '\n'; /*