diff options
author | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-03-29 18:07:53 +0800 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2020-03-29 18:07:53 +0800 |
commit | 5f2bc2d38205cc66b7bb1805b5a1544e8ccfaae2 (patch) | |
tree | 1029916caa9ea1974516ac196606fca467f9c097 /src/interactive/app | |
parent | 164d8859ea0a1386dbd75a0a27dd0340e6605857 (diff) |
Fix crashbug - division by zero…
…thanks to a screenrecording, a short flash of the error is enough :D.
Should remember that.
Besides, div by zero is by now the most common reason for a crash.
Diffstat (limited to 'src/interactive/app')
-rw-r--r-- | src/interactive/app/eventloop.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/interactive/app/eventloop.rs b/src/interactive/app/eventloop.rs index b7fa22b..f8e68b7 100644 --- a/src/interactive/app/eventloop.rs +++ b/src/interactive/app/eventloop.rs @@ -241,11 +241,7 @@ impl TerminalApp { } }); s.reset_message(); - s.entries = sorted_entries( - &traversal.tree, - s.root, - s.sorting, - ); + s.entries = sorted_entries(&traversal.tree, s.root, s.sorting); s.selected = s.selected.or_else(|| s.entries.get(0).map(|b| b.index)); s }, |