diff options
author | Blaž Hrastnik | 2021-08-12 01:18:37 +0000 |
---|---|---|
committer | Blaž Hrastnik | 2021-08-12 01:18:37 +0000 |
commit | d03982ee432bb418e1e74d490ae66371e201cee2 (patch) | |
tree | e36bafa34ad1ee805650fce29177277ffcbf9c93 /helix-term/src | |
parent | 25a8a475c53a90fed9ad40db7c327a3cdf481cd7 (diff) |
cargo fmt
Diffstat (limited to 'helix-term/src')
-rw-r--r-- | helix-term/src/commands.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 7994c26e..0acb57e2 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -451,14 +451,11 @@ fn goto_window(cx: &mut Context, align: Align) { let (view, doc) = current!(cx.editor); let height = view.area.height.saturating_sub(1) as usize; // -1 for statusline + // - 1 so we have at least one gap in the middle. // a height of 6 with padding of 3 on each side will keep shifting the view back and forth // as we type - let scrolloff = cx - .editor - .config - .scrolloff - .min(height.saturating_sub(1) / 2); + let scrolloff = cx.editor.config.scrolloff.min(height.saturating_sub(1) / 2); let last_line = view.last_line(doc); |