Fix hints assignment in reverse mode

This commit is contained in:
Ferran Basora 2019-02-26 23:17:51 +00:00
parent 02eacd4144
commit b1200599bf

View File

@ -71,6 +71,9 @@ impl<'a> State<'a> {
// This looks wrong but we do a pop after
if !reverse {
hints.reverse();
} else {
matches.reverse();
hints.reverse();
}
if unique {
@ -92,6 +95,10 @@ impl<'a> State<'a> {
}
}
if reverse {
matches.reverse();
}
return matches;
}