Closed przepompownia closed 3 months ago
@przepompownia can you test #1024. I've changed the behaviour so the buffer is detached on :saveas
. If attached_to_untracked
is enabled, it will then re-attach.
Thank you, autocommands from #1024 fix this issue (I have checked it with attach_to_untracked
too). attached_to_untracked
exists only in CHANGELOG.
As a side effect I found that staging such empty buffer results with still left unstaged deletion of an empty line. I'm not sure if it's a bug to report in a separate issue.
As a side effect I found that staging such empty buffer results with still left unstaged deletion of an empty line. I'm not sure if it's a bug to report in a separate issue.
Sounds weird. Probably worth raising.
Sounds weird. Probably worth raising.
Description
Nothing more than in the title.
Neovim version
v0.11.0-dev-76+g8db9a0e5a
Operating system and version
Debian Sid
Expected behavior
No response
Actual behavior
Using gitsigns on the new file affects (only) the old one.
Minimal config
Steps to reproduce
oldfile
nvim --clean -u minimal.lua
oldfile`:saveas newfile
insidenewfile
:Gitsigns stage_buffer
theregit diff
andgit diff --cached
. For me onlyoldfile
is shown.Gitsigns debug messages
(from
attach
):