commit 9c30066e73f0105c3fccb7582c8172d5117857b3
Author: Jakub Leszczak <[email protected]>
AuthorDate: Wed May 6 13:35:53 2020 +0200
Commit: Hiltjo Posthuma <[email protected]>
CommitDate: Tue May 12 15:38:02 2020 +0200
Fix selection: ignore ATTR_WRAP when rectangular selection in getsel
diff --git a/st.c b/st.c
index 8c42a9c..7c15d5f 100644
--- 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;