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:
parent
cc30495ba0
commit
25ed864d87
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user