Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Fix accidental always repaint
  • Loading branch information
sholderbach committed Sep 13, 2022
commit e2b4408d47513a415f666b4eb33f9376bccd79b6
2 changes: 0 additions & 2 deletions src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -504,8 +504,6 @@ impl Reedline {
if let Some(ec) = last_edit_commands {
reedline_events.push(ReedlineEvent::Edit(ec));
}
} else if !self.painter.exceeds_screen_size() {
reedline_events.push(ReedlineEvent::Repaint);
};

for event in reedline_events.drain(..) {
Expand Down
7 changes: 0 additions & 7 deletions src/painting/painter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,6 @@ impl Painter {
self.screen_height() - self.prompt_start_row
}

/// Check if the currently painted content exceeds the size of the screen
/// and thus should not be repainted without reason (disable animation
/// repaint)
pub(crate) fn exceeds_screen_size(&self) -> bool {
self.large_buffer
}

/// Sets the prompt origin position and screen size for a new line editor
/// invocation
///
Expand Down