pub fn move_to_start_of_history(&mut self) -> io::Result<()> {
        if self.context.history.len() > 0 {
            self.cur_history_loc = Some(0);
            self.move_cursor_to_end_of_line()
        } else {
            self.cur_history_loc = None;
            self.no_newline = true;
            self.display()
        }
    }
/// Moves to the start of history (ie. the earliest history entry).
Moves to the start of history .
Moves to the start of history .
pub fn move_to_start_of_history(&mut self) -> io::Result<()> {
        if self.context.history.len() > 0 {
            self.cur_history_loc = Some(0);
            self.move_cursor_to_end_of_line()
        } else {
            self.cur_history_loc = None;
            self.no_newline = true;
            self.display()
        }
    }
pub fn move_to_start_of_history ( & mut self ) -> io :: Result < ( ) > { if self . context . history . len ( ) > 0 { self . cur_history_loc = Some ( 0 ) ; self . move_cursor_to_end_of_line ( ) } else { self . cur_history_loc = None ; self . no_newline = true ; self . display ( ) } }
Moves to the start of history (ie.
Moves to the start of history ( ie .
&mut self
&mut self