Closed milanglacier closed 5 months ago
I think it is 871bc83
that introduces the breaking change
and previously when a file is discarded, in line 1025 of status.lua
, the item.mode
is actually nil, so the comparison can be done successfully, but now calling a string method match
on item.mode
results in the error.
So, just tested this on nightly
branch and it seems to be working fine, so I'm going to close this. Nightly will get merged to master when nvim 0.10 is released, which should be within a week or two :)
Description
Cannot discard an untracked file:
type
x
onhello.lua
will yiled an errorNeovim version
NVIM v0.9.5 Build type: Release LuaJIT 2.1.1710088188
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/opt/homebrew/Cellar/neovim/0.9.5/share/nvim"
Run :checkhealth for more info
Operating system and version
macOS 13.4
Steps to reproduce
nvim -nu minimal.lua
:Neogit
x
on an untracked file.Expected behavior
The untracked file should be deleted
Actual behavior
get the following error:
Minimal config