tpope / vim-fugitive

fugitive.vim: A Git wrapper so awesome, it should be illegal
https://www.vim.org/scripts/script.php?script_id=2975
20.01k stars 1.01k forks source link

Partial hunk staging doesn't work with nvim as EDITOR environment variable #2302

Open nikita-talalai opened 5 months ago

nikita-talalai commented 5 months ago

Step to reproduce:

  1. Set EDITOR=nvim
  2. In nvim run :G to open git status
  3. Press "P" mapping on unstaged file
  4. Choose to edit hunk
  5. Make changes and save It doesn't return to previous buffer after saving and quitting (to continue processing other hunks). It returns to git status split with unapplied changes. However, editing hunk with, for example, nano, is working as expected.