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