Small fixes

This commit is contained in:
2022-08-24 02:32:50 +02:00
parent 623b7fb584
commit 029f385a41
3 changed files with 10 additions and 29 deletions

View File

@@ -7,8 +7,8 @@
:hiddenFalsePositives (.. (vim.fn.stdpath "config") "/spell/false.txt")})
(fn file_exists [file] (let [f (io.open file "rb")]
(match f nil (do (f.close f) false)
_ true)))
(match f nil false
_ (do (f.close f) true))))
(fn lines_from [file] (match (file_exists file) false []
true (let [lines []]