~exitb/retrofit

40a7071c54ad3699269a81842afe1c3069029bd0 — exitb 1 year, 10 months ago ec58955
Always exit retrofit after last drawn line
1 files changed, 9 insertions(+), 1 deletions(-)

M src/adapter.rs
M src/adapter.rs => src/adapter.rs +9 -1
@@ 387,7 387,11 @@ where
            });
        }

        self.push_code(AnsiCode::ControlCharacter('\n'));
        let lines_from_end = 1 + self.last_line.saturating_sub(self.position.line);

        for _ in 0..lines_from_end {
            self.push_code(AnsiCode::ControlCharacter('\n'));
        }

        if self.parameters.hide_cursor {
            self.push_code(AnsiCode::ControlSequence {


@@ 560,6 564,10 @@ where
                            self.push_code(AnsiCode::ControlCharacter('\n'));
                        }

                        if self.last_line < height as usize - 1 {
                            self.last_line = height as usize - 1;
                        }

                        self.push_code(AnsiCode::ControlSequence {
                            introducer: ControlSequenceIntroducer::CursorUp,
                            parameters: vec![height],