From c7494044236a2753deb53a81db02f06cc308d47a Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 21 Nov 2022 00:29:17 +0100 Subject: [PATCH] fix: first line of file --- lua/lazy/util.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/lazy/util.lua b/lua/lazy/util.lua index faf02e1..7e09599 100644 --- a/lua/lazy/util.lua +++ b/lua/lazy/util.lua @@ -134,8 +134,9 @@ end function M.head(file) local f = io.open(file) if f then + local ret = f:read() f:close() - return f:read() + return ret end end