fix line spacing not retained in compile-mode.lua
This commit is contained in:
parent
d186f510e3
commit
7254f63fcf
1 changed files with 4 additions and 6 deletions
|
|
@ -246,12 +246,10 @@ local function run_compile(cmd)
|
||||||
local function append_output(data)
|
local function append_output(data)
|
||||||
if not data then return end
|
if not data then return end
|
||||||
for _, line in ipairs(data) do
|
for _, line in ipairs(data) do
|
||||||
if line ~= '' then
|
table.insert(output_lines, line)
|
||||||
table.insert(output_lines, line)
|
vim.api.nvim_buf_set_lines(bufnr, -1, -1, false, { line })
|
||||||
vim.api.nvim_buf_set_lines(bufnr, -1, -1, false, { line })
|
local buf_line = vim.api.nvim_buf_line_count(bufnr)
|
||||||
local buf_line = vim.api.nvim_buf_line_count(bufnr)
|
line_to_qf[buf_line] = #output_lines
|
||||||
line_to_qf[buf_line] = #output_lines
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue