-
-
Notifications
You must be signed in to change notification settings - Fork 179
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New buffer created from saveas
is attached to the old file
#1021
Comments
@przepompownia can you test #1024. I've changed the behaviour so the buffer is detached on |
Thank you, autocommands from #1024 fix this issue (I have checked it with 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. |
|
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
):The text was updated successfully, but these errors were encountered: