Skip to content

Commit f45fdda

Browse files
committed
Trim empty lines when echo loggings
1 parent a4f8a42 commit f45fdda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/commons/log.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ local function log(level, msg)
6262
return
6363
end
6464

65-
local msg_lines = vim.split(msg, "\n", { plain = true })
65+
local msg_lines = vim.split(msg, "\n", { plain = true, trimempty = true })
6666
if LogConfigs.use_console and level >= LogLevels.INFO then
6767
local msg_chunks = {}
6868
for _, line in ipairs(msg_lines) do

0 commit comments

Comments
 (0)