Got questions, comments, patches, etc.?
Contact Jason Woofenden
gitweb
/
st.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
do not add newline to selection text if next line not selected (Nick)
[st.git]
/
st.c
diff --git
a/st.c
b/st.c
index
d0a607b
..
561d5b0
100644
(file)
--- a/
st.c
+++ b/
st.c
@@
-420,8
+420,8
@@
selcopy(void) {
memcpy(ptr, term.line[y][x].c, sl);
ptr += sl;
}
- if(ls)
- *ptr = '\n', ptr++;
+ if(ls && y < sel.e.y)
+ *ptr++ = '\n';
}
*ptr = 0;
}