aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--st.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/st.c b/st.c
index d0a607b..561d5b0 100644
--- a/st.c
+++ b/st.c
@@ -420,8 +420,8 @@ selcopy(void) {
420 memcpy(ptr, term.line[y][x].c, sl); 420 memcpy(ptr, term.line[y][x].c, sl);
421 ptr += sl; 421 ptr += sl;
422 } 422 }
423 if(ls) 423 if(ls && y < sel.e.y)
424 *ptr = '\n', ptr++; 424 *ptr++ = '\n';
425 } 425 }
426 *ptr = 0; 426 *ptr = 0;
427 } 427 }