diff --git a/lua/packer/display.lua b/lua/packer/display.lua index 70970fb7..d79e68a8 100644 --- a/lua/packer/display.lua +++ b/lua/packer/display.lua @@ -876,7 +876,10 @@ display.status = { running = false, disp = nil } --- Close a display window and signal that any running operations should terminate display.quit = function() display.status.running = false - vim.fn.execute('q!', 'silent') + local _, err = pcall(api.nvim_win_close, 0, true) + if err then + print(err) + end end display.toggle_info = function()