Skip to content

Neogit staging leaves unstaged diff (Windows) #1863

@adrianstaniec

Description

@adrianstaniec

Description

When I stage singe lines or hunks,
the diff stays visible in Unstaged changes,
Only when I stage the whole file then it correctly disapears from Unstanged changes.
It's most probably related to windows line endings.

Neovim version

NVIM v0.11.5
Build type: Release
LuaJIT 2.1.1741730670
Run "nvim -V1 -v" for more info

Operating system and version

Windows 11

Steps to reproduce

neogit_bad_3_small_cropped.mp4

Expected behavior

See magit in the video above

Actual behavior

See video above

Minimal config

-- not really relevant I think

MiniDeps.later(function()
  MiniDeps.add({
    source = "NeogitOrg/neogit",
    depends = { "nvim-lua/plenary.nvim" },
  })
end)

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