Skip to content

Commit fecf731

Browse files
committed
Resolve to an absolute path in NfnlCompileFile, far more consistent
1 parent 5419be4 commit fecf731

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

fnl/nfnl/api.fnl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
(let [dir (or dir (vim.fn.getcwd))
6363
{: config : root-dir : cfg} (config.find-and-load dir)]
6464
(if config
65-
(let [path (fs.join-path [root-dir (vim.fn.expand (or path "%"))])
65+
(let [path (fs.absolute-path (vim.fn.expand (or path "%")))
6666
result (compile.into-file
6767
{: root-dir
6868
: cfg

lua/nfnl/api.lua

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)