From c7dd8ac8873d21143efd6ec1177cf35f90fe0188 Mon Sep 17 00:00:00 2001 From: bhagwan Date: Sun, 12 Dec 2021 09:55:36 -0800 Subject: [PATCH] bugfix: previewer reload between two nameless buffers (closes #250) --- lua/fzf-lua/previewer/builtin.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/fzf-lua/previewer/builtin.lua b/lua/fzf-lua/previewer/builtin.lua index fad8d7b..0259119 100644 --- a/lua/fzf-lua/previewer/builtin.lua +++ b/lua/fzf-lua/previewer/builtin.lua @@ -233,7 +233,7 @@ function Previewer.buffer_or_file:should_clear_preview(entry) entry = self:parse_entry(entry) end if (entry.bufnr and entry.bufnr == self.loaded_entry.bufnr) or - (entry.path and entry.path == self.loaded_entry.path) then + (not entry.bufnr and entry.path and entry.path == self.loaded_entry.path) then return false end return true