refactor!: dont add unnecessary empty lines

This commit is contained in:
Oleksandr Smirnov 2025-02-26 20:26:33 +02:00
parent 02cc77e81c
commit 5b233d877c
No known key found for this signature in database
6 changed files with 14 additions and 5 deletions

View file

@ -88,7 +88,7 @@ function impl.impl(...)
end
local pos = vim.fn.getcurpos()[2]
local output = vim.split(rs.stdout, "\n")
local output = u.remove_empty_lines(vim.split(rs.stdout, "\n"))
table.insert(output, 1, "")
vim.fn.append(pos, output)