Skip to content

Commit e097b88

Browse files
authored
Fix prompt_start_row reset to 0 after output without CR (#688)
1 parent a4bfaa5 commit e097b88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/painting/painter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ impl Painter {
153153

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

0 commit comments

Comments
 (0)