aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander <alex0player@gmail.com>2014-05-26 09:23:56 +0400
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2014-05-27 08:37:12 +0200
commit2411308bd24c4db97a3bb06d38f183a679aec1ea (patch)
tree96d6515bf37031fdb51d8f244c346604482af14d
parentd03aa8d20bcc8a94a7737331a9ec0bf11df3e572 (diff)
downloadst-2411308bd24c4db97a3bb06d38f183a679aec1ea.tar.gz
st-2411308bd24c4db97a3bb06d38f183a679aec1ea.tar.bz2
st-2411308bd24c4db97a3bb06d38f183a679aec1ea.zip
Fixed copying empty lines inside selection.
The code was assuming that empty lines have implicit wrap-around attribute. Signed-off-by: Roberto E. Vargas Caballero <k0ga@shike2.com>
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 6424b54..506be0f 100644
--- a/st.c
+++ b/st.c
@@ -949,7 +949,7 @@ getsel(void) {
* st.
* FIXME: Fix the computer world.
*/
- if(y < sel.ne.y && x > 0 && !((gp-1)->mode & ATTR_WRAP))
+ if(y < sel.ne.y && !(x > 0 && (gp-1)->mode & ATTR_WRAP))
*ptr++ = '\n';
/*