diff options
| author | Alexey Yerin <yyp@disroot.org> | 2021-02-10 11:31:27 +0300 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2021-02-10 10:53:00 +0100 |
| commit | 945b7dc9861f6c90d79d1faf5c97adc1da684253 (patch) | |
| tree | 7ef18246c5f11207c3d8d58215d44569e94da807 | |
| parent | aeeae92611683f1330d56dc8cbbda93a6868d3c6 (diff) | |
| download | river-945b7dc9861f6c90d79d1faf5c97adc1da684253.tar.gz river-945b7dc9861f6c90d79d1faf5c97adc1da684253.tar.xz | |
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.
| -rw-r--r-- | river/command/swap.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/river/command/swap.zig b/river/command/swap.zig index ac2f1a8..2c138fe 100644 --- a/river/command/swap.zig +++ b/river/command/swap.zig @@ -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, ); |
