Commit a047431

pancake@nopcode.org <unknown>
2011-04-01 03:35:38
do not add newline to selection text if next line not selected (Nick)
1 parent fe72483
Changed files (1)
st.c
@@ -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;
 	}