diff options
author | pancake@nopcode.org | 2011-04-01 09:35:38 +0200 |
---|---|---|
committer | pancake@nopcode.org | 2011-04-01 09:35:38 +0200 |
commit | a047431d34aa77ac7a8fab08151fb569bbe2148e (patch) | |
tree | b5cd76aee0ea15eaf6b990588a8a49edde1abf84 | |
parent | fe724836866d16a6dfd6de3ca3664033d9146a54 (diff) | |
download | st-a047431d34aa77ac7a8fab08151fb569bbe2148e.tar.gz st-a047431d34aa77ac7a8fab08151fb569bbe2148e.tar.xz st-a047431d34aa77ac7a8fab08151fb569bbe2148e.zip |
do not add newline to selection text if next line not selected (Nick)
-rw-r--r-- | st.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -420,8 +420,8 @@ selcopy(void) { memcpy(ptr, term.line[y][x].c, sl); ptr += sl; } - if(ls) - *ptr = '\n', ptr++; + if(ls && y < sel.e.y) + *ptr++ = '\n'; } *ptr = 0; } |