Fix selection: ignore ATTR_WRAP when rectangular selection in getsel
Jakub Leszczak szatan@gecc.xyz
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
st.c
→
st.c
@@ -634,7 +634,8 @@ * '\r', when something to be pasted is received by
* 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;