Skip to content

Commit 586e1f2

Browse files
committed
fix: reset horizontal offset when output length changes
1 parent bb5e659 commit 586e1f2

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/output_widget.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ impl OutputWidget {
178178
pub fn handle_command_output(&mut self, output: Output) {
179179
if self.output.len() != output.len() {
180180
self.offset.row = 0;
181+
self.offset.col = 0;
181182
}
182183

183184
if output.ok {

0 commit comments

Comments
 (0)