diff options
author | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-12-02 19:01:51 +0200 |
---|---|---|
committer | Manos Pitsidianakis <el13635@mail.ntua.gr> | 2020-12-02 21:01:22 +0200 |
commit | e5b0ff4fe2799339076de95227b13d9755245f5f (patch) | |
tree | f214dfde40d5545bb6a87c9bc3ff0e7dac5604d1 /src/components/mail/listing/thread.rs | |
parent | 68f9d1220bbbd023a184aea3565149c8d45dbfe5 (diff) |
state: remove runtime_settings
Diffstat (limited to 'src/components/mail/listing/thread.rs')
-rw-r--r-- | src/components/mail/listing/thread.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/components/mail/listing/thread.rs b/src/components/mail/listing/thread.rs index ed347527..705fada0 100644 --- a/src/components/mail/listing/thread.rs +++ b/src/components/mail/listing/thread.rs @@ -1090,7 +1090,12 @@ impl Component for ThreadListing { /* Render the mail body in a pager, basically copy what HSplit does */ let total_rows = get_y(bottom_right) - get_y(upper_left); - let pager_ratio = context.runtime_settings.pager.pager_ratio; + let pager_ratio = *mailbox_settings!( + context[self.cursor_pos.0][&self.cursor_pos.1] + .pager + .pager_ratio + ); + let bottom_entity_rows = (pager_ratio * total_rows) / 100; if bottom_entity_rows > total_rows { |