mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +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();
|
let snap = self.snap_mut();
|
||||||
|
if let InputOp::Select(_) = snap.op {
|
||||||
|
succ!();
|
||||||
|
}
|
||||||
|
|
||||||
if !snap.value.is_empty() {
|
if !snap.value.is_empty() {
|
||||||
snap.op = InputOp::Select(snap.cursor);
|
snap.op = InputOp::Select(snap.cursor);
|
||||||
render!();
|
render!();
|
||||||
}
|
}
|
||||||
|
|
||||||
succ!();
|
succ!();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue