Introduction
Introduction Statistics Contact Development Disclaimer Help
Fix selection: ignore ATTR_WRAP when rectangular selection in getsel - st - sim…
git clone git://git.suckless.org/st
Log
Files
Refs
README
LICENSE
---
commit 9c30066e73f0105c3fccb7582c8172d5117857b3
parent 8304d4f0599b1be2226c28c553547070658d4af3
Author: Jakub Leszczak <[email protected]>
Date: Wed, 6 May 2020 13:35:53 +0200
Fix selection: ignore ATTR_WRAP when rectangular selection in getsel
Diffstat:
M st.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_…
+ if ((y < sel.ne.y || lastx >= linelen) &&
+ (!(last->mode & ATTR_WRAP) || sel.type == SEL_RECTANGULAR))
*ptr++ = '\n';
}
*ptr = 0;
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.