pub fn delete_before_cursor(&mut self) -> io::Result<()> {
        if self.cursor > 0 {
            let buf = cur_buf_mut!(self);
            buf.remove(self.cursor - 1, self.cursor);
            self.cursor -= 1;
        }

        self.no_newline = true;
        self.display()
    }
/// Deletes the character directly before the cursor, moving the cursor to the left.
/// If the cursor is at the start of the line, nothing happens.
Deletes the character directly before the cursor, moving the cursor to the left.
If the cursor is at the start of the line, nothing happens.
Deletes the character directly before the cursor moving the cursor to the left . If the cursor is at the start of the line nothing happens .
pub fn delete_before_cursor(&mut self) -> io::Result<()> {
        if self.cursor > 0 {
            let buf = cur_buf_mut!(self);
            buf.remove(self.cursor - 1, self.cursor);
            self.cursor -= 1;
        }
        self.no_newline = true;
        self.display()
    }
pub fn delete_before_cursor ( & mut self ) -> io :: Result < ( ) > { if self . cursor > 0 { let buf = cur_buf_mut ! ( self ) ; buf . remove ( self . cursor - 1 , self . cursor ) ; self . cursor -= 1 ; } self . no_newline = true ; self . display ( ) }
Deletes the character directly before the cursor, moving the cursor to the left.
Deletes the character directly before the cursor moving the cursor to the left .
&mut self
&mut self