refactor: change split function
This commit is contained in:
parent
f3afc8f5db
commit
1592502a94
2 changed files with 3 additions and 3 deletions
|
|
@ -26,11 +26,11 @@ function iferr.iferr()
|
|||
return
|
||||
end
|
||||
|
||||
log.error("ferr: failed. output: " .. vim.inspect(rs.stderr))
|
||||
log.error("ferr: failed. output: " .. rs.stderr)
|
||||
error("iferr failed: " .. rs.stderr)
|
||||
end
|
||||
|
||||
vim.fn.append(pos, vim.fn.split(rs.stdout, "\n"))
|
||||
vim.fn.append(pos, vim.split(rs.stdout, "\n"))
|
||||
vim.cmd [[silent normal! j=2j]]
|
||||
vim.fn.setpos(".", pos)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -88,7 +88,7 @@ function impl.impl(...)
|
|||
end
|
||||
|
||||
local pos = vim.fn.getcurpos()[2]
|
||||
local output = vim.fn.split(rs.stdout, "\n")
|
||||
local output = vim.split(rs.stdout, "\n")
|
||||
|
||||
table.insert(output, 1, "")
|
||||
vim.fn.append(pos, output)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue