1 Commits

Author SHA1 Message Date
Robin Jarry
765761c5bf commands: simplify CompletePath
This function is overly complex, has code duplication and is not
preserving user input (converting all paths to absolute paths).

Simplify it and avoid converting relative paths to absolute ones.

Add unit tests to ensure it works as expected.

Signed-off-by: Robin Jarry <robin@jarry.cc>
Tested-by: Bence Ferdinandy <bence@ferdinandy.com>
2024-01-17 11:52:57 +01:00