From 5b4615800802b7aef89492a222729d9bf4958081 Mon Sep 17 00:00:00 2001 From: sammyette Date: Fri, 26 Jul 2024 18:08:16 -0400 Subject: [PATCH] fix(commands/cd): use absolute paths to cd --- nature/commands/cd.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nature/commands/cd.lua b/nature/commands/cd.lua index 7cfe4a2..22078d9 100644 --- a/nature/commands/cd.lua +++ b/nature/commands/cd.lua @@ -19,7 +19,7 @@ commander.register('cd', function (args, sinks) dirs.setOld(hilbish.cwd()) dirs.push(path) - local ok, err = pcall(function() fs.cd(path) end) + local ok, err = pcall(function() fs.cd(fs.abs(path)) end) if not ok then sinks.out:writeln(err) return 1