Skip to content

Commit 7e611f1

Browse files
committed
fix: adjust cursor start position for large buffers
1 parent cc79605 commit 7e611f1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/painting/painter.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,6 +226,9 @@ impl Painter {
226226

227227
// Moving the start position of the cursor based on the size of the required lines
228228
if self.large_buffer || is_reset() {
229+
for _ in 0..screen_height - 1 {
230+
self.stdout.queue(Print(&coerce_crlf("\n")))?;
231+
}
229232
self.prompt_start_row = 0;
230233
} else if required_lines >= remaining_lines {
231234
let extra = required_lines.saturating_sub(remaining_lines);

0 commit comments

Comments
 (0)