aboutsummaryrefslogtreecommitdiffstats
path: root/edconf.lua
diff options
context:
space:
mode:
Diffstat (limited to 'edconf.lua')
-rw-r--r--edconf.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/edconf.lua b/edconf.lua
index 2ec800b..c60cdf6 100644
--- a/edconf.lua
+++ b/edconf.lua
@@ -36,7 +36,7 @@ function insert_final_newline(file, path)
-- therefore respect edconf_hooks_enabled. Since this function runs
-- blazingly fast and scales with a complexity of O(1), however,
-- there is no need to disable it.
- if file:content(file.size-1, file.size) ~= '\n' then
+ if file:content(file.size-1, 1) ~= '\n' then
file:insert(file.size, '\n')
end
end