shithub: mc

Download patch

ref: 0cc2e13e08c6812fb2a70aae573d0f2e198ea63c
parent: 555658791708fca90cbe2f8fd1bc1ce2a6a1b3ab
author: Ori Bernstein <ori@eigenstate.org>
date: Tue Jan 26 15:10:32 EST 2016

Fix inifile test.

	This was broken when removing the '$' operator.

--- a/lib/inifile/parse.myr
+++ b/lib/inifile/parse.myr
@@ -108,7 +108,7 @@
 			-> false
 		;;
 		std.slfree(p.sect)
-		p.sect = std.sldup(std.strstrip(ln[1:]))
+		p.sect = std.sldup(std.strstrip(ln[1:idx]))
 	| `std.None:
 		p.err = `std.Some (`Parseerr p.line)
 		-> false