mirror of
https://github.com/lewis6991/gitsigns.nvim
synced 2024-09-16 14:34:09 +02:00
fix(blame): restore original options when blame window is closed
This commit is contained in:
parent
0ed466953f
commit
564849a17b
1 changed files with 2 additions and 0 deletions
|
@ -307,6 +307,7 @@ M.blame = function()
|
|||
vim.cmd('normal! 0')
|
||||
|
||||
local cur_wlo = vim.wo[win][0]
|
||||
local cur_orig_wlo = { cur_wlo.foldenable, cur_wlo.scrollbind, cur_wlo.wrap }
|
||||
cur_wlo.foldenable = false
|
||||
cur_wlo.scrollbind = true
|
||||
cur_wlo.wrap = false
|
||||
|
@ -389,6 +390,7 @@ M.blame = function()
|
|||
group = group,
|
||||
callback = function()
|
||||
api.nvim_buf_clear_namespace(bufnr, ns, 0, -1)
|
||||
cur_wlo.foldenable, cur_wlo.scrollbind, cur_wlo.wrap = unpack(cur_orig_wlo)
|
||||
end,
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue