Skip to content

Commit

Permalink
Comment for known bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Somerfield committed Dec 3, 2023
1 parent 6bb51cb commit 6f1dd80
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/painting/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,13 @@ impl Painter {
// The question is whether we can afford it. If not, perhaps we should use it in some scenarios but not others
// The problem is trying to calculate this internally doesn't seem to be reliable because terminals might
// have additional text in their buffer that messes with the offset on scroll.
// It seems like it _should_ be ok because it only happens on resize
// It seems like it _should_ be ok because it only happens on resize.

// Known bug: on iterm2 and kitty, clearing the screen via CMD-K doesn't reset
// the position. Might need to special-case this.
//
// I assume this is a bug with the position() call but haven't figured that
// out yet.
if let Ok(position) = cursor::position() {
self.prompt_start_row = position.1;

Check warning on line 417 in src/painting/painter.rs

View check run for this annotation

Codecov / codecov/patch

src/painting/painter.rs#L416-L417

Added lines #L416 - L417 were not covered by tests
}
Expand Down

0 comments on commit 6f1dd80

Please sign in to comment.