Skip to content

Commit 45100a0

Browse files
committed
Show scrollbar if content is scrollable
1 parent 87ce1fb commit 45100a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/diff.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ impl DrawableComponent for DiffComponent {
683683
if self.focused() {
684684
self.scroll.draw(f, r, &self.theme);
685685

686-
if self.scrolled_right != 0 {
686+
if self.max_scroll_right() > 0 {
687687
draw_scrollbar(
688688
f,
689689
r,

0 commit comments

Comments
 (0)