13
0

fix find next region boundary : must use absolute value of distance

This matches semantics in 6.9 and avoids negative distances entering the
flow for various next/prev region boundary operations.
This commit is contained in:
Paul Davis 2022-10-22 14:15:09 -06:00
parent cc30495ba0
commit 25ed864d87

View File

@ -918,7 +918,7 @@ Editor::find_next_region_boundary (timepos_t const & pos, int32_t dir, const Tra
continue;
}
d = contender.distance (pos);
d = pos.distance (contender).abs();
if (d < distance) {
current_nearest = contender;