shithub: mc

Download patch

ref: 645ac9298c8d9c7ffee3da6c849a389bcc9adcb2
parent: 9b60831c7e019e9fc9f4d62d1a016d8ddd7e7a91
author: Ori Bernstein <[email protected]>
date: Thu Dec 12 11:50:27 EST 2013

Handle boundary condition when splitting strings.

--- a/libstd/strsplit.myr
+++ b/libstd/strsplit.myr
@@ -24,6 +24,7 @@
 			last = i + 1
 		;;
 	;;
+	sp = slpush(sp, s[last:i])
 	-> sp
 }