When using Gitsigns blame, if I use the "reblame at [parent] commit", then dismiss the blame sidebar, I end up with an un-editable buffer from that historical view instead of the on-disk file.
Neovim version
v0.10.0
Operating system and version
NixOS unstable
Expected behavior
I would like for the plug-in to restore the buffer to be the editable on-file one, instead of the historical view, when I dismiss the blame sidebar.
Actual behavior
See description.
Minimal config
for name, url in pairs{
gitsigns = 'https://github.com/lewis6991/gitsigns.nvim',
-- ADD OTHER PLUGINS _NECESSARY_ TO REPRODUCE THE ISSUE
} do
local install_path = vim.fn.fnamemodify('gitsigns_issue/'..name, ':p')
if vim.fn.isdirectory(install_path) == 0 then
vim.fn.system { 'git', 'clone', '--depth=1', url, install_path }
end
vim.opt.runtimepath:append(install_path)
end
require('gitsigns').setup{
debug_mode = true, -- You must add this to enable debug messages
-- ADD GITSIGNS CONFIG THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
}
-- ADD INIT.LUA SETTINGS THAT IS _NECESSARY_ FOR REPRODUCING THE ISSUE
Description
When using
Gitsigns blame
, if I use the "reblame at [parent] commit", then dismiss the blame sidebar, I end up with an un-editable buffer from that historical view instead of the on-disk file.Neovim version
v0.10.0
Operating system and version
NixOS unstable
Expected behavior
I would like for the plug-in to restore the buffer to be the editable on-file one, instead of the historical view, when I dismiss the blame sidebar.
Actual behavior
See description.
Minimal config
Steps to reproduce
mkdir gitsigns_issue
cd gitsigns_issue
git init
printf '1\n2\n3\n4\n5' > file
git add file
git commit -m 'initial commit'
printf '10\n20\n3\n4\n5' > file
git add file
git commit -m 'second commit'
file
, blame it and re-blame at the parent.C-w q
).Gitsigns debug messages
No response
Gitsigns cache
No response