feat: check if already in visual mode before entering visual mode

This commit is contained in:
sxyazi 2025-11-29 05:14:51 +08:00
parent 3561867b99
commit facf9c8812
No known key found for this signature in database

View file

@ -12,10 +12,15 @@ impl Input {
}
let snap = self.snap_mut();
if let InputOp::Select(_) = snap.op {
succ!();
}
if !snap.value.is_empty() {
snap.op = InputOp::Select(snap.cursor);
render!();
}
succ!();
}
}