Skip to content

Commit

Permalink
fix: on_result_diagnostics_quickfix preserves window focus (#237)
Browse files Browse the repository at this point in the history
* feat: on_result_diagnostics_quickfix can preserve window focus

* fix: always prefer window focus
  • Loading branch information
jpetrie authored Dec 5, 2023
1 parent d5f8392 commit 6e3ab7e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/overseer/component/on_result_diagnostics_quickfix.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ local comp = {
vim.cmd(conf.close_cmd)
end
elseif params.open then
local winid = vim.api.nvim_get_current_win()
vim.cmd(conf.open_cmd)
vim.api.nvim_set_current_win(winid)
end
end,
}
Expand Down

0 comments on commit 6e3ab7e

Please sign in to comment.