Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pynappo committed Jan 25, 2025
1 parent c93d361 commit ba8982d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/neo-tree/sources/common/preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -312,6 +312,7 @@ function Preview:setBuffer(bufnr)
goto finally
end
if self.config.use_float then
-- Workaround until https://github.com/neovim/neovim/issues/24973 is resolved or maybe 'previewpopup' comes in?
vim.fn.bufload(bufnr)
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
vim.api.nvim_buf_set_lines(self.bufnr, 0, -1, false, lines)
Expand Down

0 comments on commit ba8982d

Please sign in to comment.