mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-04-14 23:49:19 +08:00
fix(flygrep): fix grep_stdout function
This commit is contained in:
parent
a8bf050c33
commit
fa7d5dc1be
@ -128,7 +128,7 @@ local function grep_stdout(id, data, event)
|
||||
if id ~= grepid then return end
|
||||
local datas = vim.fn.filter(data, '!empty(v:val)')
|
||||
-- let datas = s:LIST.uniq_by_func(datas, function('s:file_line'))
|
||||
if vim.fn.getbufline(buffer_id, 1) == '' then
|
||||
if vim.fn.getbufline(buffer_id, 1)[1] == '' then
|
||||
vim.api.nvim_buf_set_lines(buffer_id, 0, -1, false, datas)
|
||||
else
|
||||
vim.api.nvim_buf_set_lines(buffer_id, -1, -1, false, datas)
|
||||
|
Loading…
x
Reference in New Issue
Block a user