diff options
author | Canop <cano.petrole@gmail.com> | 2020-07-23 18:53:23 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-07-23 18:53:23 +0200 |
commit | effe1f8ea6e4970634ce12418fa8289177d5f8ea (patch) | |
tree | 4f4f2f0b551e6729e63fca411f240564b3cb53e5 /src/browser/browser_state.rs | |
parent | eb5f98c420a943c33e4cb8abfee964036014b016 (diff) |
:select_first and :select_last implemented in preview
Diffstat (limited to 'src/browser/browser_state.rs')
-rw-r--r-- | src/browser/browser_state.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/browser/browser_state.rs b/src/browser/browser_state.rs index 052585d..6d5b342 100644 --- a/src/browser/browser_state.rs +++ b/src/browser/browser_state.rs @@ -500,7 +500,8 @@ impl AppState for BrowserState { AppStateCmdResult::Keep } Internal::select_last => { - self.displayed_tree_mut().try_select_last(); + let page_height = BrowserState::page_height(screen); + self.displayed_tree_mut().try_select_last(page_height); AppStateCmdResult::Keep } Internal::start_end_panel => { |