Skip to content

Commit bfe7b63

Browse files
committed
fix: reset both vertical and horizontal offsets when the output length changes
1 parent bb5e659 commit bfe7b63

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/output_widget.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ impl OutputWidget {
177177

178178
pub fn handle_command_output(&mut self, output: Output) {
179179
if self.output.len() != output.len() {
180-
self.offset.row = 0;
180+
self.offset = Position::default();
181181
}
182182

183183
if output.ok {

0 commit comments

Comments
 (0)