Skip to content

Commit

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

Expand Down

0 comments on commit 01ebc76

Please sign in to comment.