pub struct LastChange {
pub change_type: ChangeType,
pub count: Option<usize>,
pub register: Option<char>,
pub keys: Vec<KeyEvent>,
}Expand description
Record of the last change for dot repeat (.).
Stores information needed to replay the last edit operation. This is set by operator resolvers and insert mode exit.
Fields§
§change_type: ChangeTypeType of change that was made.
count: Option<usize>Count used with the original command (None = no explicit count).
register: Option<char>Register used with the original command.
keys: Vec<KeyEvent>Recorded key sequence for replay via InjectKeys (#577).
When non-empty, . replays these keys instead of using the
metadata-based approach. This handles all cases including
operator+motion, operator+textobj, and change+insert.
Trait Implementations§
Source§impl Clone for LastChange
impl Clone for LastChange
Source§fn clone(&self) -> LastChange
fn clone(&self) -> LastChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LastChange
impl RefUnwindSafe for LastChange
impl Send for LastChange
impl Sync for LastChange
impl Unpin for LastChange
impl UnsafeUnpin for LastChange
impl UnwindSafe for LastChange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more