yazi_core/input/commands/
undo.rsuse yazi_macro::render;
use yazi_shared::event::CmdCow;
use crate::input::{Input, InputMode};
impl Input {
pub fn undo(&mut self, _: CmdCow) {
if !self.snaps.undo() {
return;
}
if self.snap().mode == InputMode::Insert {
self.escape(());
}
render!();
}
}