Skip to content

Commit 3bde6f7

Browse files
committed
Focus window with breakpoint on stopped event
So far it set the cursor, but didn't change the active window. See #980 (comment)
1 parent bb1ddce commit 3bde6f7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lua/dap/session.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ end
375375
local function set_cursor(win, line, column)
376376
local ok, err = pcall(api.nvim_win_set_cursor, win, { line, column - 1 })
377377
if ok then
378+
api.nvim_set_current_win(win)
378379
api.nvim_win_call(win, function()
379380
api.nvim_command('normal! zv')
380381
end)

0 commit comments

Comments
 (0)