Skip to content

Commit

Permalink
Fix prompt_start_row reset to 0 after output without CR (#688)
Browse files Browse the repository at this point in the history
  • Loading branch information
nibon7 authored Dec 23, 2023
1 parent a4bfaa5 commit e097b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/painting/painter.rs
Original file line number Diff line number Diff line change
@@ -153,7 +153,7 @@ impl Painter {

// This might not be terribly performant. Testing it out
let is_reset = || match cursor::position() {
Ok(position) => position.1 < self.prompt_start_row,
Ok(position) => position.1.abs_diff(self.prompt_start_row) > 1,
Err(_) => false,
};

0 comments on commit e097b88

Please sign in to comment.