Small fixes

This commit is contained in:
2023-09-28 12:36:29 +02:00
parent 623b7fb584
commit 029f385a41
3 changed files with 10 additions and 29 deletions
+2 -2
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 []]