Skip to content

Commit

Permalink
replace read_async call with read (per changes to plenary)
Browse files Browse the repository at this point in the history
  • Loading branch information
anott03 committed Feb 12, 2021
1 parent 2177f28 commit e94fdff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/telescope/previewers/buffer_previewer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ previewers.file_maker = function(filepath, bufnr, opts)
if opts.callback then opts.callback(bufnr) end
end)})
else
path:new(filepath):read_async(vim.schedule_wrap(function(data)
path:new(filepath):read(vim.schedule_wrap(function(data)
if not vim.api.nvim_buf_is_valid(bufnr) then return end
local ok = pcall(vim.api.nvim_buf_set_lines, bufnr, 0, -1, false, vim.split(data, '[\r]?\n'))
if not ok then return end
Expand Down

0 comments on commit e94fdff

Please sign in to comment.