Skip to content

Commit b5296c6

Browse files
committed
Fix horizontal scrolling regression
1 parent dfad187 commit b5296c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/view/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ impl View for ContextComponent {
9191

9292

9393
frame.render_widget(
94-
Paragraph::new(lines.clone()),
94+
Paragraph::new(lines.clone()).scroll((0, app.session_view.context_scroll.1)),
9595
areas[1],
9696
);
9797
}

src/view/source.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ impl View for SourceComponent {
9494
}
9595

9696
frame.render_widget(
97-
Paragraph::new(lines.clone()),
97+
Paragraph::new(lines.clone()).scroll((0, app.session_view.source_scroll.1)),
9898
rows[0],
9999
);
100100

0 commit comments

Comments
 (0)