diff options
author | Jakub Leszczak <szatan@gecc.xyz> | 2020-05-06 13:35:53 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2020-05-12 15:38:02 +0200 |
commit | 9c30066e73f0105c3fccb7582c8172d5117857b3 (patch) | |
tree | a1f8707d7c3c095e2e6e572d0b0a3fa84b295bb0 | |
parent | 8304d4f0599b1be2226c28c553547070658d4af3 (diff) |
Fix selection: ignore ATTR_WRAP when rectangular selection in getsel
-rw-r--r-- | st.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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; |