aboutsummaryrefslogtreecommitdiffstats
path: root/lua/conform/health.lua
diff options
context:
space:
mode:
authorSteven Arcangeli <stevearc@stevearc.com>2024-01-21 10:49:44 -0800
committerSteven Arcangeli <stevearc@stevearc.com>2024-01-21 10:49:44 -0800
commit9a785eb8f0199ac47ce8bb9e9b6103de5ad8e3a7 (patch)
tree107c70dc4e872ae64e0e7309013c99ded8255b19 /lua/conform/health.lua
parentcbc5745bf7519acaf3a5cbaaa677fd556aa813d7 (diff)
fix: handle windows line endings (#274)
Diffstat (limited to 'lua/conform/health.lua')
-rw-r--r--lua/conform/health.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lua/conform/health.lua b/lua/conform/health.lua
index 61cdc6f..c02fd00 100644
--- a/lua/conform/health.lua
+++ b/lua/conform/health.lua
@@ -95,7 +95,7 @@ M.show_window = function()
f:seek("end", context)
local text = f:read("*a")
f:close()
- local log_lines = vim.split(text, "\n", { plain = true, trimempty = true })
+ local log_lines = vim.split(text, "\r?\n", { trimempty = true })
for i = 2, #log_lines do
table.insert(lines, string.rep(" ", 10) .. log_lines[i])
end