feat(git): give every new git window a fresh jumplist

This commit is contained in:
2026-04-29 15:46:54 +02:00
parent 81bc011b09
commit 2335d5e0dd
5 changed files with 40 additions and 10 deletions
+3 -1
View File
@@ -640,11 +640,13 @@ end
---@param dir "left"|"right"
---@return integer
local function vsplit_at(target_win, dir)
return vim.api.nvim_open_win(
local win = vim.api.nvim_open_win(
vim.api.nvim_win_get_buf(target_win),
true,
{ split = dir, win = target_win }
)
vim.cmd("clearjumps")
return win
end
---@param s ow.Git.SidebarState