summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Lohmann2013-02-26 19:08:51 +0100
committerChristoph Lohmann2013-02-26 19:08:51 +0100
commit1c1621da699adae49a4344b145f856dacb57270c (patch)
treea1889bbf14151959cd0d14e466bb0b0f27d9a1a1
parent1aa26b4ecd68e6071d36e9103aa9c21711bbf6ea (diff)
downloadst-1c1621da699adae49a4344b145f856dacb57270c.tar.gz
st-1c1621da699adae49a4344b145f856dacb57270c.tar.xz
st-1c1621da699adae49a4344b145f856dacb57270c.zip
Changing the way how paste is handled, just for the nano people.
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 83fdc6d..8b5ba64 100644
--- a/st.c
+++ b/st.c
@@ -796,7 +796,7 @@ selcopy(void) {
}
/* \n at the end of every selected line except for the last one */
if(is_selected && y < sel.e.y)
- *ptr++ = '\n';
+ *ptr++ = '\r';
}
*ptr = 0;
}