Skip to content

Commit

Permalink
fix(relatedDiagnostics): compatibility with nvim 10.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcjkb authored Dec 4, 2024
1 parent d0b2369 commit 8281903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/rustaceanvim/commands/diagnostic.lua
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ function M.related_diagnostics()
end)
else
vim.fn.setqflist({}, ' ', { title = 'related diagnostics', items = quickfix_entries })
vim.cmd.botright('copen')
vim.cmd.botright and vim.cmd.botright('copen') or vim.cmd.copen()
end
end

Expand Down

0 comments on commit 8281903

Please sign in to comment.