pub fn accept_autosuggestion(&mut self) -> io::Result<()> {
        if self.show_autosuggestions {
            {
                let autosuggestion = self.autosuggestion.clone();
                let search = self.is_search();
                let buf = self.current_buffer_mut();
                match autosuggestion {
                    Some(ref x) if search => buf.copy_buffer(x),
                    Some(ref x) => buf.insert_from_buffer(x),
                    None => ()
                }
            }
        }
        self.clear_search();
        self.move_cursor_to_end_of_line()
    }
/// Accept autosuggestion and copy its content into current buffer
Accept autosuggestion and copy its content into current buffer
Accept autosuggestion and copy its content into current buffer
pub fn accept_autosuggestion(&mut self) -> io::Result<()> {
        if self.show_autosuggestions {
            {
                let autosuggestion = self.autosuggestion.clone();
                let search = self.is_search();
                let buf = self.current_buffer_mut();
                match autosuggestion {
                    Some(ref x) if search => buf.copy_buffer(x),
                    Some(ref x) => buf.insert_from_buffer(x),
                    None => ()
                }
            }
        }
        self.clear_search();
        self.move_cursor_to_end_of_line()
    }
pub fn accept_autosuggestion ( & mut self ) -> io :: Result < ( ) > { if self . show_autosuggestions { { let autosuggestion = self . autosuggestion . clone ( ) ; let search = self . is_search ( ) ; let buf = self . current_buffer_mut ( ) ; match autosuggestion { Some ( ref x ) if search => buf . copy_buffer ( x ) , Some ( ref x ) => buf . insert_from_buffer ( x ) , None => ( ) } } } self . clear_search ( ) ; self . move_cursor_to_end_of_line ( ) }
Accept autosuggestion and copy its content into current buffer
Accept autosuggestion and copy its content into current buffer
&mut self
&mut self