swap: use correct direction for it_wrap
Always using .forward results in a crash when running `swap previous` on the first view in stack which should be wrapped.
This commit is contained in:
parent
aeeae92611
commit
945b7dc986
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ pub fn swap(
|
|||
);
|
||||
var it_wrap = ViewStack(View).iter(
|
||||
if (direction == .next) output.views.first else output.views.last,
|
||||
.forward,
|
||||
if (direction == .next) .forward else .reverse,
|
||||
output.pending.tags,
|
||||
filter,
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue