pub fn delete_word_before_cursor(
        &mut self,
        ignore_space_before_cursor: bool,
    ) -> io::Result<()> {
        if let Some((start, _)) = self.get_word_before_cursor(ignore_space_before_cursor) {
            let moved = cur_buf_mut!(self).remove(start, self.cursor);
            self.cursor -= moved;
        }
        self.no_newline = true;
        self.display()
    }
/// Deletes the word preceding the cursor.
/// If `ignore_space_before_cursor` is true and there is space directly before the cursor,
/// this method ignores that space until it finds a word.
/// If `ignore_space_before_cursor` is false and there is space directly before the cursor,
/// nothing is deleted.
Deletes the word preceding the cursor.
If `ignore_space_before_cursor` is true and there is space directly before the cursor,
this method ignores that space until it finds a word.
If `ignore_space_before_cursor` is false and there is space directly before the cursor,
nothing is deleted.
Deletes the word preceding the cursor . If ` ignore_space_before_cursor ` is true and there is space directly before the cursor this method ignores that space until it finds a word . If ` ignore_space_before_cursor ` is false and there is space directly before the cursor nothing is deleted .
pub fn delete_word_before_cursor(
        &mut self,
        ignore_space_before_cursor: bool,
    ) -> io::Result<()> {
        if let Some((start, _)) = self.get_word_before_cursor(ignore_space_before_cursor) {
            let moved = cur_buf_mut!(self).remove(start, self.cursor);
            self.cursor -= moved;
        }
        self.no_newline = true;
        self.display()
    }
pub fn delete_word_before_cursor ( & mut self , ignore_space_before_cursor : bool , ) -> io :: Result < ( ) > { if let Some ( ( start , _ ) ) = self . get_word_before_cursor ( ignore_space_before_cursor ) { let moved = cur_buf_mut ! ( self ) . remove ( start , self . cursor ) ; self . cursor -= moved ; } self . no_newline = true ; self . display ( ) }
Deletes the word preceding the cursor.
Deletes the word preceding the cursor .
&mut self
ignore_space_before_cursor
bool
&mut self
ignore_space_before_cursor
bool