st

simple terminal

git clone https://9o.is/git/st.git

commit 0bc8324947fa3df3689b5d426c189ebbbf128ecf
parent d1293f77a49d9d1f9c1680ddedd510a75c1897b8
Author: Alexander <alex0player@gmail.com>
Date:   Mon, 26 May 2014 09:23:56 +0400

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>

Diffstat:
Mst.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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'; /*