We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f19430 commit c971d5eCopy full SHA for c971d5e
1 file changed
lua/fzf-lua/previewer/builtin.lua
@@ -1032,7 +1032,7 @@ function Previewer.buffer_or_file:populate_preview_buf(entry_str)
1032
fn.jobstop(self._job_id)
1033
self._job_id = nil
1034
end
1035
- if entry.bufnr and api.nvim_buf_is_loaded(entry.bufnr) then
+ if entry.bufnr and api.nvim_buf_is_loaded(entry.bufnr) and vim.bo[entry.bufnr].filetype ~= "image" then
1036
-- WE NO LONGER REUSE THE CURRENT BUFFER
1037
-- this changes the buffer's 'getbufinfo[1].lastused'
1038
-- which messes up our `buffers()` sort
0 commit comments