Skip to content

Commit d2a2ae4

Browse files
committed
fix: #1853
1 parent 1cedfc3 commit d2a2ae4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/neogit/lib/buffer.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -847,7 +847,7 @@ function Buffer.create(config)
847847
if buffer.header_win_handle ~= nil then
848848
vim.schedule(function()
849849
logger.debug("[BUFFER:" .. buffer.handle .. "] Closing header window")
850-
api.nvim_win_close(buffer.header_win_handle, true)
850+
pcall(api.nvim_win_close, buffer.header_win_handle, true)
851851
end)
852852
end
853853
end,

0 commit comments

Comments
 (0)