Skip to content

Commit d3dd3a7

Browse files
committed
Show scrollbar if content is scrollable
1 parent 8e75646 commit d3dd3a7

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
@@ -682,7 +682,7 @@ impl DrawableComponent for DiffComponent {
682682
if self.focused() {
683683
self.scroll.draw(f, r, &self.theme);
684684

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

0 commit comments

Comments
 (0)