mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: use default value for invalid move argument
This commit is contained in:
parent
ab268a85df
commit
3f3b5004cd
1 changed files with 1 additions and 1 deletions
|
|
@ -43,7 +43,7 @@ impl TryFrom<&Data> for OptStep {
|
||||||
impl From<CmdCow> for Opt {
|
impl From<CmdCow> for Opt {
|
||||||
fn from(c: CmdCow) -> Self {
|
fn from(c: CmdCow) -> Self {
|
||||||
Self {
|
Self {
|
||||||
step: c.get(0).unwrap().try_into().unwrap(),
|
step: c.get(0).unwrap().try_into().unwrap_or(OptStep::Offset(0)),
|
||||||
in_operating: c.bool("in-operating"),
|
in_operating: c.bool("in-operating"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue