aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src/ui/markdown.rs
diff options
context:
space:
mode:
authorBlaž Hrastnik2021-12-10 10:23:34 +0000
committerBlaž Hrastnik2021-12-10 10:23:58 +0000
commit3307f44ce20a71273614f9b30dafb08822e557a1 (patch)
treee1822706818048dcd2ccd41402e182e7f8e2a96c /helix-term/src/ui/markdown.rs
parentb66d3d3d9dccbb9c28d8611c4a0fc5d74ccb27d6 (diff)
ui: popup: Don't allow scrolling past the end of content
Diffstat (limited to 'helix-term/src/ui/markdown.rs')
-rw-r--r--helix-term/src/ui/markdown.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/helix-term/src/ui/markdown.rs b/helix-term/src/ui/markdown.rs
index ca8303dd..46657fb9 100644
--- a/helix-term/src/ui/markdown.rs
+++ b/helix-term/src/ui/markdown.rs
@@ -241,11 +241,6 @@ impl Component for Markdown {
} else if content_width > text_width {
text_width = content_width;
}
-
- if height >= viewport.1 {
- height = viewport.1;
- break;
- }
}
Some((text_width + padding, height))