Skip to content

Commit 727b512

Browse files
authored
Merge pull request #1444 from asmodeus812/fix/show-buffer-in-existing-window
2 parents a111da6 + 04e3765 commit 727b512

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/neogit/lib/buffer.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ function Buffer:show()
256256

257257
-- Already visible
258258
if #windows > 0 then
259+
vim.api.nvim_set_current_win(windows[1])
259260
return windows[1]
260261
end
261262

0 commit comments

Comments
 (0)