mirror of
https://github.com/nushell/reedline.git
synced 2024-09-11 15:55:50 +03:00
Fix prompt_start_row
reset to 0 after output without CR (#688)
This commit is contained in:
parent
a4bfaa512b
commit
e097b88dab
@ -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,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user