aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpancake@nopcode.org <unknown>2011-04-01 09:35:38 +0200
committerpancake@nopcode.org <unknown>2011-04-01 09:35:38 +0200
commitff97be88d59fb4a5c00b9f1db2e64fb15396d77d (patch)
treeb5cd76aee0ea15eaf6b990588a8a49edde1abf84
parentf27e662faa00b0789bca34e9cde02101c8c64e43 (diff)
downloadst-patched-ff97be88d59fb4a5c00b9f1db2e64fb15396d77d.tar.bz2
st-patched-ff97be88d59fb4a5c00b9f1db2e64fb15396d77d.tar.xz
st-patched-ff97be88d59fb4a5c00b9f1db2e64fb15396d77d.zip
do not add newline to selection text if next line not selected (Nick)
-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 }