//! Line up method for ScrollState.
use crate::widgets::markdown_widget::state::scroll_state::ScrollState;
impl ScrollState {
/// Move current line up (for keyboard navigation).
pub fn line_up(&mut self) {
if self.current_line > 1 {
self.current_line -= 1;
}
self.adjust_scroll_for_current_line();
}
}