st

simple terminal

git clone https://9o.is/git/st.git

commit 2ff3f4e2a81bcdedff9bf23bf48e37b899effd29
parent 28a529d5fd68ff830eeb198884071d3e545dcaa2
Author: Jakub Leszczak <szatan@gecc.xyz>
Date:   Wed,  6 May 2020 13:35:53 +0200

Fix selection: ignore ATTR_WRAP when rectangular selection in getsel

Diffstat:
Mst.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/st.c b/st.c @@ -634,7 +634,8 @@ getsel(void) * st. * FIXME: Fix the computer world. */ - if ((y < sel.ne.y || lastx >= linelen) && !(last->mode & ATTR_WRAP)) + if ((y < sel.ne.y || lastx >= linelen) && + (!(last->mode & ATTR_WRAP) || sel.type == SEL_RECTANGULAR)) *ptr++ = '\n'; } *ptr = 0;