Extract a common `match_index_for_direction` and `active_match_index`

ed89475cf6Antonio Scandurra committed on 2/28/2022, 9:34:11 AMparent8eba964
3 files changedLine totals unavailable