JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Changing the way how paste is handled, just for the nano people.
[st.git] / st.c
diff --git a/st.c b/st.c
index 83fdc6d..8b5ba64 100644 (file)
--- 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;
        }