pub struct ReselectLast;Expand description
Reselect the last visual selection (gv in normal mode).
Restores the previous visual selection bounds and enters the appropriate visual mode. If no previous selection exists, this is a no-op.
Note: The actual restoration logic is handled by the event loop since it
requires access to AppState.last_visual_selection. This command just signals
the intent to reselect.
Trait Implementations§
Source§impl Clone for ReselectLast
impl Clone for ReselectLast
Source§fn clone(&self) -> ReselectLast
fn clone(&self) -> ReselectLast
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 moreSource§impl Command for ReselectLast
impl Command for ReselectLast
Source§fn description(&self) -> &'static str
fn description(&self) -> &'static str
Get a human-readable description of what this command does.
Source§fn complete(&self, _partial: &str) -> Vec<String>
fn complete(&self, _partial: &str) -> Vec<String>
Get tab-completion candidates for this command’s arguments. Read more
Source§fn priority(&self) -> CommandPriority
fn priority(&self) -> CommandPriority
Registration priority (#545). Read more
Source§impl CommandHandler for ReselectLast
impl CommandHandler for ReselectLast
Source§fn execute(
&self,
_runtime: &mut SessionRuntime<'_>,
_args: &CommandContext,
) -> CommandResult
fn execute( &self, _runtime: &mut SessionRuntime<'_>, _args: &CommandContext, ) -> CommandResult
Execute the command. Read more
Source§impl Debug for ReselectLast
impl Debug for ReselectLast
Source§impl Default for ReselectLast
impl Default for ReselectLast
Source§fn default() -> ReselectLast
fn default() -> ReselectLast
Returns the “default value” for a type. Read more
impl Copy for ReselectLast
Auto Trait Implementations§
impl Freeze for ReselectLast
impl RefUnwindSafe for ReselectLast
impl Send for ReselectLast
impl Sync for ReselectLast
impl Unpin for ReselectLast
impl UnsafeUnpin for ReselectLast
impl UnwindSafe for ReselectLast
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