tpope / vim-fugitive

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

Fix TempReadPost return value #2291

Closed zyd2001 closed 5 months ago

zyd2001 commented 5 months ago

Commit 2377e16 does not add return for normal buffer case, so it will return 0 and exe 0 will set the cursor to the top. It will undo cursor position setting from user's BufReadPost autocommand.