Skip to content

Invalid window id: when close log window #1853

@hujianxin

Description

@hujianxin

Description

neogit version: 268ddf7cabad7203e761df62eaa99f8c635c1907

Error executing vim.schedule lua callback: .../.local/share/nvim/lazy/neogit/lua/neogit/lib/buffer.lua:850: Invalid window id: 1006
stack traceback:
        [C]: in function 'nvim_win_close'
        .../.local/share/nvim/lazy/neogit/lua/neogit/lib/buffer.lua:850: in function <.../.local/share/nvim/lazy/neogit/lua/neogit/lib/buffer.lua:848>
Image

Neovim version

NVIM v0.11.5
Build type: Release
LuaJIT 2.1.1761727121

Operating system and version

macos 15.7.1

Steps to reproduce

Reproduce:

  1. ll to look into logs
  2. esc to quit the log window

Expected behavior

close the windows succesfully

Actual behavior

met an error

Minimal config

{
    "NeogitOrg/neogit",
    dependencies = {
      "nvim-lua/plenary.nvim",
      "sindrets/diffview.nvim",
      "nvim-telescope/telescope.nvim",
    },
    cmd = "Neogit",
    keys = {
      { "<C-g>", "<cmd>Neogit kind=vsplit<cr>", desc = "Neogit" },
    },
    opts = {
      integrations = {
        telescope = true,
        diffview = true,
      },
    },
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions