This commit is contained in:
Ryan David Sheasby
2021-08-07 22:25:59 +02:00
committed by GitHub
parent c1840692c1
commit 17363d8200

View File

@@ -135,7 +135,7 @@ local function open_floating_window()
vim.cmd('set winhl=Normal:Floating')
-- create a unlisted scratch buffer
if LAZYGIT_BUFFER == nil or vim.fn.bufwinnr(LAZYGIT_BUFFER) == 0 then
if LAZYGIT_BUFFER == nil or vim.fn.bufwinnr(LAZYGIT_BUFFER) == -1 then
LAZYGIT_BUFFER = api.nvim_create_buf(false, true)
else
LAZYGIT_LOADED = true