Skip to content

Commit 4f8ce88

Browse files
committed
fix(switchbuf): check if winfixbuf with uselast
1 parent 7881908 commit 4f8ce88

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/dap-view/views/windows/switchbuf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ M.switchbuf_winfn.uselast = function(_, winnr)
5959
return winnr
6060
else
6161
local win = vim.fn.win_getid(vim.fn.winnr("#"))
62-
if win then
62+
if win and not vim.wo[win].winfixbuf then
6363
return win
6464
end
6565

0 commit comments

Comments
 (0)