233 feature request subcommands (#234)

This commit is contained in:
Christian Visintin
2024-03-01 10:01:25 +01:00
committed by GitHub
parent 2a51ab984c
commit 679a829744
16 changed files with 154 additions and 103 deletions

View File

@@ -60,8 +60,8 @@ where
}
(None, _) => comps.push(Component::ParentDir),
(Some(a), Some(b)) if comps.is_empty() && a == b => (),
(Some(a), Some(b)) if b == Component::CurDir => comps.push(a),
(Some(_), Some(b)) if b == Component::ParentDir => return None,
(Some(a), Some(Component::CurDir)) => comps.push(a),
(Some(_), Some(Component::ParentDir)) => return None,
(Some(a), Some(_)) => {
comps.push(Component::ParentDir);
for _ in itb {