From: Alexander Date: Mon, 26 May 2014 05:23:56 +0000 (+0400) Subject: Fixed copying empty lines inside selection. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=2411308bd24c4db97a3bb06d38f183a679aec1ea;p=st.git 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 --- 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'; /*