mirror of
https://github.com/FliegendeWurst/tmux-thumbs.git
synced 2024-11-09 16:00:35 +00:00
Fix hints assignment in reverse mode
This commit is contained in:
parent
02eacd4144
commit
b1200599bf
@ -71,6 +71,9 @@ impl<'a> State<'a> {
|
|||||||
// This looks wrong but we do a pop after
|
// This looks wrong but we do a pop after
|
||||||
if !reverse {
|
if !reverse {
|
||||||
hints.reverse();
|
hints.reverse();
|
||||||
|
} else {
|
||||||
|
matches.reverse();
|
||||||
|
hints.reverse();
|
||||||
}
|
}
|
||||||
|
|
||||||
if unique {
|
if unique {
|
||||||
@ -92,6 +95,10 @@ impl<'a> State<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if reverse {
|
||||||
|
matches.reverse();
|
||||||
|
}
|
||||||
|
|
||||||
return matches;
|
return matches;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user