Skip to content
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

dq seems to leave the wrong buffer open after :Gvdiffsplit! #2196

Open
gwerbin opened this issue Jul 17, 2023 · 0 comments
Open

dq seems to leave the wrong buffer open after :Gvdiffsplit! #2196

gwerbin opened this issue Jul 17, 2023 · 0 comments

Comments

@gwerbin
Copy link

gwerbin commented Jul 17, 2023

After invoking :Gvdiffsplit! or dv in the Git buffer, everything works as expected. However, when I return to the same Git buffer and invoke dq, the fugitive://...//2/... buffer is left in the remaining window, not the original buffer of the file I was diffing.

I am using a somewhat-outdated Neovim dev release (v0.10.0-dev-482+g38b0bb) and Fugitive commit 43f18ab9155c853a84ded560c6104e6300ad41da.

It seems to occur reliably in the repo I happen to be working on if I follow the following steps:

  1. Start Neovim in the project's top-level directory (also the Git repo top level)
  2. Invoke :Git to open the Git buffer in a new window. Switch to it and run :25wincmd _ and :setl winfixheight.
  3. Choose an unstaged file with merge conflicts (UU in git status --short), and invoke dv.
  4. Fix conflicts. Run :w in the middle window, and and then :Git add % (or s in the Git buffer).
  5. Switch back to the Git buffer window, and invoke dq.

Let me know if there's any other information I can provide to help reproduce the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant