pub fn delete_after_cursor(&mut self) -> io::Result<()> {
        {
            let buf = cur_buf_mut!(self);

            if self.cursor < buf.num_chars() {
                buf.remove(self.cursor, self.cursor + 1);
            }
        }
        self.no_newline = true;
        self.display()
    }
/// Deletes the character directly after the cursor. The cursor does not move.
/// If the cursor is at the end of the line, nothing happens.
Deletes the character directly after the cursor. The cursor does not move.
If the cursor is at the end of the line, nothing happens.
Deletes the character directly after the cursor . The cursor does not move . If the cursor is at the end of the line nothing happens .
pub fn delete_after_cursor(&mut self) -> io::Result<()> {
        {
            let buf = cur_buf_mut!(self);
            if self.cursor < buf.num_chars() {
                buf.remove(self.cursor, self.cursor + 1);
            }
        }
        self.no_newline = true;
        self.display()
    }
pub fn delete_after_cursor ( & mut self ) -> io :: Result < ( ) > { { let buf = cur_buf_mut ! ( self ) ; if self . cursor < buf . num_chars ( ) { buf . remove ( self . cursor , self . cursor + 1 ) ; } } self . no_newline = true ; self . display ( ) }
Deletes the character directly after the cursor.
Deletes the character directly after the cursor .
&mut self
&mut self