mirror of
https://github.com/sxyazi/yazi.git
synced 2026-05-13 08:16:40 +00:00
feat: check if already in visual mode before entering visual mode (#3381)
This commit is contained in:
parent
a8f2498471
commit
8c2a6dba90
1 changed files with 5 additions and 0 deletions
|
|
@ -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!();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue