feat(git): give every new git window a fresh jumplist
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user