pub fn delete_until_inclusive(&mut self, position: usize) -> io::Result<()> {
        {
            let buf = cur_buf_mut!(self);
            buf.remove(
                cmp::min(self.cursor, position),
                cmp::max(self.cursor + 1, position + 1),
            );
            self.cursor = cmp::min(self.cursor, position);
        }
        self.no_newline = true;
        self.display()
    }
/// Deletes every character from the cursor until the given position, inclusive.
Deletes every character from the cursor until the given position, inclusive.
Deletes every character from the cursor until the given position inclusive .
pub fn delete_until_inclusive(&mut self, position: usize) -> io::Result<()> {
        {
            let buf = cur_buf_mut!(self);
            buf.remove(
                cmp::min(self.cursor, position),
                cmp::max(self.cursor + 1, position + 1),
            );
            self.cursor = cmp::min(self.cursor, position);
        }
        self.no_newline = true;
        self.display()
    }
pub fn delete_until_inclusive ( & mut self , position : usize ) -> io :: Result < ( ) > { { let buf = cur_buf_mut ! ( self ) ; buf . remove ( cmp :: min ( self . cursor , position ) , cmp :: max ( self . cursor + 1 , position + 1 ) , ) ; self . cursor = cmp :: min ( self . cursor , position ) ; } self . no_newline = true ; self . display ( ) }
Deletes every character from the cursor until the given position, inclusive.
Deletes every character from the cursor until the given position inclusive .
&mut self
position
usize
&mut self
position
usize