diff --git a/src/state.rs b/src/state.rs index d9c3e86..dc15312 100644 --- a/src/state.rs +++ b/src/state.rs @@ -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; }