Xinqi Bao's Git
projects
/
st.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
raw
| inline |
side by side
Fix core in multi-line selection on OpenBSD
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
df58e9e
..
c3a04c5
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-962,7
+962,7
@@
selcopy(void) {
* st.
* FIXME: Fix the computer world.
*/
- if(y < sel.ne.y && !((gp-1)->mode & ATTR_WRAP))
+ if(y < sel.ne.y &&
x > 0 &&
!((gp-1)->mode & ATTR_WRAP))
*ptr++ = '\n';
/*