feat: check if already in visual mode before entering visual mode (#3381)

This commit is contained in:
三咲雅 misaki masa 2025-11-29 05:27:35 +08:00 committed by GitHub
parent a8f2498471
commit 8c2a6dba90
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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!();
}
}