diff options
| author | Gustav Sörnäs <gustav@sornas.net> | 2021-05-03 23:04:54 +0200 |
|---|---|---|
| committer | Gustav Sörnäs <gustav@sornas.net> | 2021-05-03 23:04:54 +0200 |
| commit | 4d102e069e4a0b6064a79915d368773338dbbb8e (patch) | |
| tree | b5e9bd1c287040b2f2261e6b6e0e49823a84a56f /src/buffer/threads.rs | |
| parent | b0bf51b90bc233024f1b82bf3f050d26f677b935 (diff) | |
| download | mail-4d102e069e4a0b6064a79915d368773338dbbb8e.tar.gz | |
dont scroll too far
Closes #11
Diffstat (limited to 'src/buffer/threads.rs')
| -rw-r--r-- | src/buffer/threads.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer/threads.rs b/src/buffer/threads.rs index 893b4ec..5a87388 100644 --- a/src/buffer/threads.rs +++ b/src/buffer/threads.rs @@ -92,7 +92,7 @@ impl Threads { } else { self.i - 1 }, - Key::Char('e') => window.scroll_down(), + Key::Char('e') => window.scroll_down(self.threads.len()), Key::Char('y') => window.scroll_up(), Key::Char('i') => { self.threads[self.i].remove_tag("inbox"); |
