pinosaur
/
st.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8304d4f
)
Fix selection: ignore ATTR_WRAP when rectangular selection in getsel
author
Jakub Leszczak
<szatan@gecc.xyz>
Wed, 6 May 2020 11:35:53 +0000
(13:35 +0200)
committer
Hiltjo Posthuma
<hiltjo@codemadness.org>
Tue, 12 May 2020 13:38:02 +0000
(15:38 +0200)
st.c
patch
|
blob
|
history
diff --git
a/st.c
b/st.c
index
8c42a9c
..
7c15d5f
100644
(file)
--- 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;