append_buf: create buffer if needed

pull/3/head
Björn Linse 5 years ago
parent 92a77519d4
commit 2819be54b0

@ -47,7 +47,7 @@ end
local function append_buf(lines, hl)
if s.buf == nil then
return
create_buf()
end
local l0 = a.nvim_buf_line_count(s.buf)
if type(lines) == type("") then

Loading…
Cancel
Save