summaryrefslogtreecommitdiffstats
path: root/src/components/mail/listing/thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/mail/listing/thread.rs')
-rw-r--r--src/components/mail/listing/thread.rs7
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 {